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

Commit 09a20fdb by nov matake

rename one more Model to DAO

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