Commit 3b735d28 authored by mntmn's avatar mntmn
Browse files

fix migration 01

parent 8ba37a11
......@@ -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'
}
)
]
])
}
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment