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

Commit 6cb75325 by Sascha Depold

correctly pass the meta objects values to the options

1 parent e7fe460d
Showing with 1 additions and 1 deletions
......@@ -211,7 +211,7 @@ if (program.migrate) {
migrator.findOrCreateSequelizeMetaDAO().success(function(Meta) {
Meta.find({ order: 'id DESC' }).success(function(meta) {
if (meta) {
migrator = sequelize.getMigrator(_.extend(migratorOptions, meta), true)
migrator = sequelize.getMigrator(_.extend(migratorOptions, meta.values), true)
migrator.migrate({ method: 'down' }).success(function() {
process.exit(0)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!