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

Commit b9820b7d by Sascha Depold

dummy methods for migrations

1 parent a35edb75
Showing with 41 additions and 3 deletions
...@@ -33,16 +33,54 @@ module.exports = (function() { ...@@ -33,16 +33,54 @@ module.exports = (function() {
} else { } else {
getLastMigrationId.call(self).success(function(migrationId) { getLastMigrationId.call(self).success(function(migrationId) {
migrationId = migrationId || '19700101000000' migrationId = migrationId || '19700101000000'
execMigrations(migrationId) execMigrations.call(self, migrationId)
}) })
} }
}).run() }).run()
} }
Migrator.prototype.createTable = function() {
}
Migrator.prototype.dropTable = function() {
}
Migrator.prototype.renameTable = function() {
}
Migrator.prototype.addColumn = function() {
}
Migrator.prototype.removeColumn = function() {
}
Migrator.prototype.changeColumn = function() {
}
Migrator.prototype.renameColumn = function() {
}
Migrator.prototype.addIndex = function() {
}
Migrator.prototype.removeIndex = function() {
}
// private // private
var executeMigration = function(path) { var executeMigration = function(path, method) {
console.log(path) var migration = require(path)
migration[method || 'up'](this)
} }
var getLastMigrationId = function() { var getLastMigrationId = function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!