Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
1
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.2.0 to 0.2.1

5

CHANGELOG.md

@@ -51,1 +51,6 @@ ## 0.1.0

- Fixed error running migrations under sqlite3 #27
## 0.2.1
Improvement:
- Added compatibility for mysql-2.0.0-alpha driver #25

7

lib/driver/mysql.js

@@ -109,4 +109,9 @@ var util = require('util');

exports.connect = function(config, callback) {
var db = config.db || new mysql.createClient(config);
var db;
if (typeof(mysql.createConnection === 'undefined')) {
db = config.db || new mysql.createClient(config);
} else {
db = config.db || new mysql.createConnection(config);
}
callback(null, new MysqlDriver(db));
};

2

lib/driver/pg.js

@@ -177,3 +177,3 @@ var util = require('util');

var db = config.db || new pg.Client(config);
callback(null, new PgDriver(db), db);
callback(null, new PgDriver(db));
};

@@ -14,3 +14,3 @@ {

],
"version": "0.2.0",
"version": "0.2.1",
"engines": {

@@ -17,0 +17,0 @@ "node": ">=0.6.0"

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