Socket
Socket
Sign inDemoInstall

db-migrate-pg

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate-pg - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

false/_cacache/content-v2/sha512/0b/61/241d7c17bcbb1baee7094d14b7c451efecc7ffcbd92598a0f13d313cc9ebc2a07e61f007baf58fbf94ff9a8695bdd5cae7ce03bbf1e94e93613a00f25f21

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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc