db-migrate
Advanced tools
Comparing version 0.0.6 to 0.1.0
@@ -109,3 +109,2 @@ var util = require('util'); | ||
} | ||
var sql = util.format('DROP TABLE %s %s', ifExistsSql, tableName); | ||
@@ -158,2 +157,4 @@ this.runSql(sql, callback); | ||
startMigration: function(cb){cb()}, | ||
endMigration: function(cb){cb()}, | ||
// sql, params, callback | ||
@@ -160,0 +161,0 @@ // sql, callback |
@@ -121,5 +121,7 @@ var async = require('async'); | ||
async.forEachSeries(toRun, function(migration, next) { | ||
self.up(migration.up.bind(migration), function(err) { | ||
if (err) { callback(err); return; } | ||
self.writeMigrationRecord(migration, next); | ||
self.driver.startMigration(function() { | ||
self.up(migration.up.bind(migration), function(err) { | ||
if (err) { callback(err); return; } | ||
self.writeMigrationRecord(migration, function() { self.driver.endMigration(next) }); | ||
}); | ||
}); | ||
@@ -126,0 +128,0 @@ }, callback); |
@@ -7,3 +7,3 @@ { | ||
"keywords": ["database", "db", "migrate", "migration", "sqlite", "mysql"], | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"engines": { "node" : ">=0.6.0" }, | ||
@@ -22,5 +22,8 @@ "maintainers": [ | ||
"devDependencies": { | ||
"vows": "~0.5.13", | ||
"vows": "~0.6.2", | ||
"db-info": "~0.0.1" | ||
}, | ||
"scripts": { | ||
"test": "vows" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60451
20
1236