fix migration 01
This commit is contained in:
parent
8ba37a11d6
commit
3b735d28f6
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
up: function(migration, DataTypes) {
|
up: function(migration, DataTypes) {
|
||||||
return [
|
return Promise.all([
|
||||||
migration.changeColumn('memberships', 'space_id',
|
migration.changeColumn('memberships', 'space_id',
|
||||||
{
|
{
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
@ -36,11 +36,11 @@ module.exports = {
|
|||||||
onUpdate: 'CASCADE'
|
onUpdate: 'CASCADE'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
]
|
])
|
||||||
},
|
},
|
||||||
|
|
||||||
down: function(migration, DataTypes) {
|
down: function(migration, DataTypes) {
|
||||||
return [
|
return Promise.all([
|
||||||
migration.changeColumn('memberships', 'space_id',
|
migration.changeColumn('memberships', 'space_id',
|
||||||
{
|
{
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
@ -52,7 +52,6 @@ module.exports = {
|
|||||||
onUpdate: 'NO ACTION'
|
onUpdate: 'NO ACTION'
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
,
|
|
||||||
migration.changeColumn('artifacts', 'space_id',
|
migration.changeColumn('artifacts', 'space_id',
|
||||||
{
|
{
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
@ -75,6 +74,6 @@ module.exports = {
|
|||||||
onUpdate: 'NO ACTION'
|
onUpdate: 'NO ACTION'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
]
|
])
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user