node-pg-migrate
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -7,3 +7,3 @@ var utils = require('../utils'); | ||
/* | ||
columns - hash of columns | ||
columns - hash of columns | ||
@@ -35,5 +35,6 @@ Options | ||
dropColumns: function ( table_name, columns ) { | ||
if ( typeof columns === 'string' ) columns = [columns]; | ||
else if ( typeof columns === 'object' ){ | ||
columns = _.map(columns, function(options, name){ return name; }); | ||
if ( typeof columns === 'string' ) { | ||
columns = [columns]; | ||
} else if ( !_.isArray(columns) && typeof columns === 'object' ){ | ||
columns = _.keys(columns); | ||
} | ||
@@ -156,3 +157,3 @@ return utils.t("ALTER TABLE \"{table_name}\" \n{actions};", { | ||
} else { | ||
type = options; | ||
type = options; | ||
} | ||
@@ -159,0 +160,0 @@ } |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"engines": { | ||
@@ -21,0 +21,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
578
39033