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

db-migrate-base

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate-base - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

15

index.js

@@ -164,2 +164,10 @@ var util = require('util');

_handleMultiPrimaryKeys: function(primaryKeyColumns) {
return util.format(', PRIMARY KEY (%s)',
this.quoteDDLArr(primaryKeyColumns.map(function(value) {
return value.name;
})).join(', '));
},
createTable: function(tableName, options, callback) {

@@ -190,3 +198,3 @@ log.verbose('creating table:', tableName);

if (columnSpec.primaryKey) {
primaryKeyColumns.push(columnName);
primaryKeyColumns.push({ spec: columnSpec, name: columnName });
}

@@ -197,6 +205,7 @@ }

if (primaryKeyColumns.length > 1) {
pkSql = util.format(', PRIMARY KEY (%s)',
this.quoteDDLArr(primaryKeyColumns).join(', '));
pkSql = this._handleMultiPrimaryKeys(primaryKeyColumns);
} else {
primaryKeyColumns[0] = primaryKeyColumns[0].name;
columnDefOptions.emitPrimaryKey = true;

@@ -203,0 +212,0 @@ }

2

package.json
{
"name": "db-migrate-base",
"version": "1.5.1",
"version": "1.5.2",
"description": "db-migrate base driver",

@@ -5,0 +5,0 @@ "main": "index.js",

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