db-migrate-pg
Advanced tools
Comparing version 1.1.0 to 1.2.0
24
index.js
@@ -458,3 +458,3 @@ var util = require('util'); | ||
return setNotNull.call(this); | ||
return setNotNull.call(this).nodeify(callback); | ||
@@ -470,10 +470,6 @@ function setNotNull() { | ||
return this.runSql(sql).nodeify(setUnique.bind(this)); | ||
return this.runSql(sql).then(setUnique.bind(this)); | ||
} | ||
function setUnique(err) { | ||
if (err) { | ||
return Promise.reject(err); | ||
} | ||
function setUnique() { | ||
var sql; | ||
@@ -489,3 +485,3 @@ var constraintName = tableName + '_' + columnName + '_key'; | ||
); | ||
return this.runSql(sql).nodeify(setDefaultValue.bind(this)); | ||
return this.runSql(sql).then(setDefaultValue.bind(this)); | ||
} else if (columnSpec.unique === false) { | ||
@@ -497,3 +493,3 @@ sql = util.format( | ||
); | ||
return this.runSql(sql).nodeify(setDefaultValue.bind(this)); | ||
return this.runSql(sql).then(setDefaultValue.bind(this)); | ||
} else { | ||
@@ -504,7 +500,3 @@ return setDefaultValue.call(this); | ||
function setDefaultValue(err) { | ||
if (err) { | ||
return Promise.reject(err).nodeify(callback); | ||
} | ||
function setDefaultValue() { | ||
var sql; | ||
@@ -532,5 +524,3 @@ | ||
} | ||
return this.runSql(sql) | ||
.then(setType.bind(this)) | ||
.nodeify(callback); | ||
return this.runSql(sql).then(setType.bind(this)); | ||
} | ||
@@ -537,0 +527,0 @@ |
{ | ||
"name": "db-migrate-pg", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A postgresql driver for db-migrate", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"bluebird": "^3.1.1", | ||
"db-migrate-base": "^2.0.0", | ||
"db-migrate-base": "^2.3.0", | ||
"pg": "^7.8.0", | ||
@@ -37,0 +37,0 @@ "semver": "^5.0.3" |
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
113162
20
634
Updateddb-migrate-base@^2.3.0