db-migrate
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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 |
@@ -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)); | ||
}; |
@@ -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" |
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
93732
1369