db-migrate-pg
Advanced tools
Comparing version 0.1.3 to 0.1.4
11
index.js
@@ -72,3 +72,4 @@ var util = require('util'); | ||
this.runSql(util.format('CREATE DATABASE `%s` %s', dbName, spec), callback); | ||
this.runSql(util.format('CREATE DATABASE %s %s', this.escapeDDL(dbName), | ||
spec), callback); | ||
}, | ||
@@ -87,3 +88,4 @@ | ||
this.runSql(util.format('DROP DATABASE %s `%s`', ifExists, dbName), callback); | ||
this.runSql(util.format('DROP DATABASE %s %s', this.escapeDDL(ifExists), | ||
dbName), callback); | ||
}, | ||
@@ -477,3 +479,6 @@ | ||
this.connection.end(); | ||
return Promise.resolve().nodeify(callback); | ||
if( typeof(callback) === 'function' ) | ||
return Promise.resolve().nodeify(callback); | ||
else | ||
return Promise.resolve(); | ||
} | ||
@@ -480,0 +485,0 @@ |
{ | ||
"name": "db-migrate-pg", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A postgresql driver for db-migrate", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18203
398