db-migrate
Advanced tools
Comparing version 0.9.18 to 0.9.19
@@ -174,13 +174,18 @@ var util = require('util'); | ||
this.all('SET search_path TO ' + searchPath, function() { | ||
this.all("SELECT table_name FROM information_schema.tables WHERE table_name = '" + global.migrationTable + "'", function(err, result) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
this.all("SELECT table_name FROM information_schema.tables WHERE table_name = '" + | ||
global.migrationTable + "'" + | ||
(this.schema ? | ||
" AND table_schema = '" + this.schema + "'" : | ||
''), | ||
function(err, result) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
if (result && result && result.length < 1) { | ||
this.createTable(global.migrationTable, options, callback); | ||
} else { | ||
callback(); | ||
} | ||
}.bind(this)); | ||
if (result && result && result.length < 1) { | ||
this.createTable(global.migrationTable, options, callback); | ||
} else { | ||
callback(); | ||
} | ||
}.bind(this)); | ||
}.bind(this)); | ||
@@ -187,0 +192,0 @@ }.bind(this)); |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.9.18", | ||
"version": "0.9.19", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=0.6.0" |
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
2500
129973