Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
2
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate - npm Package Compare versions

Comparing version 0.9.18 to 0.9.19

25

lib/driver/pg.js

@@ -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));

2

package.json

@@ -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

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