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

Commit 8290f44f by sdepold

added migrationId to migration

1 parent 612f2c5d
Showing with 2 additions and 1 deletions
......@@ -10,7 +10,8 @@ module.exports = (function() {
this.migrator = migrator
this.path = path
this.filename = Utils._.last(this.path.split('/'))
this.date = Migration.stringToDate(split[split.length - 1])
this.migrationId = parseInt(this.filename.match(/(.*)-.*/)[1])
this.date = Migration.stringToDate(this.filename)
this.queryInterface = this.migrator.queryInterface
this.undoneMethods = 0
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!