Socket
Socket
Sign inDemoInstall

db-migrate-pg

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate-pg - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

10

index.js

@@ -49,3 +49,4 @@ var util = require('util');

})
var type = spec.autoIncrement ? '' : this.mapDataType(spec.type);
var type = (spec.primaryKey && spec.autoIncrement) ? '' :
this.mapDataType(spec.type);
var len = spec.length ? util.format('(%s)', spec.length) : '';

@@ -285,7 +286,10 @@ var constraint = this.createColumnConstraint(spec, options, tableName, name);

if (spec.primaryKey && options.emitPrimaryKey) {
if (spec.primaryKey) {
if (spec.autoIncrement) {
constraint.push('SERIAL');
}
constraint.push('PRIMARY KEY');
if (options.emitPrimaryKey) {
constraint.push('PRIMARY KEY');
}
}

@@ -292,0 +296,0 @@

{
"name": "db-migrate-pg",
"version": "0.2.2",
"version": "0.2.3",
"description": "A postgresql driver for db-migrate",

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