不要怂,就是干,撸起袖子干!

Commit 3992d875 by sdepold

downs for migrations

1 parent df1a781f
......@@ -3,5 +3,7 @@ module.exports = {
migration.removeColumn('User', 'shopId')
},
down: function(migration, DataTypes) {}
down: function(migration, DataTypes) {
migration.addColumn('User', 'shopId', { type: DataTypes.INTEGER, allowNull: true })
}
}
......@@ -3,5 +3,7 @@ module.exports = {
migration.renameColumn('User', 'signature', 'sig')
},
down: function(migration, DataTypes) {}
down: function(migration, DataTypes) {
migration.renameColumn('User', 'sig', 'signature')
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!