Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pg-migrate

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pg-migrate - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

11

lib/operations/tables.js

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

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