fix migration 01

This commit is contained in:
mntmn 2019-05-19 22:37:35 +02:00
parent 8ba37a11d6
commit 3b735d28f6
1 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@
module.exports = {
up: function(migration, DataTypes) {
return [
return Promise.all([
migration.changeColumn('memberships', 'space_id',
{
type: DataTypes.STRING,
@ -36,11 +36,11 @@ module.exports = {
onUpdate: 'CASCADE'
}
)
]
])
},
down: function(migration, DataTypes) {
return [
return Promise.all([
migration.changeColumn('memberships', 'space_id',
{
type: DataTypes.STRING,
@ -52,7 +52,6 @@ module.exports = {
onUpdate: 'NO ACTION'
}
),
,
migration.changeColumn('artifacts', 'space_id',
{
type: DataTypes.STRING,
@ -75,6 +74,6 @@ module.exports = {
onUpdate: 'NO ACTION'
}
)
]
])
}
};
}