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

db-migrate-mysql

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate-mysql - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

.github/FUNDING.yml

16

index.js

@@ -108,4 +108,12 @@ const util = require('util');

if (spec.characterSet) {
constraint.push(`CHARACTER SET ${spec.characterSet}`);
}
if (spec.collation) {
constraint.push(`COLLATE ${spec.collation}`);
}
if (spec.primaryKey) {
if (!options || options.emitPrimaryKey) {
if (!options || Object.keys(options).length === 0 || options.emitPrimaryKey) {
constraint.push('PRIMARY KEY');

@@ -511,6 +519,8 @@ }

const { driver, ...connectionOptions } = config;
if (typeof mysql.createConnection === 'undefined') {
db = config.db || mysql.createClient(config);
db = config.db || mysql.createClient(connectionOptions);
} else {
db = config.db || mysql.createConnection(config);
db = config.db || mysql.createConnection(connectionOptions);
}

@@ -517,0 +527,0 @@

2

package.json
{
"name": "db-migrate-mysql",
"version": "2.2.0",
"version": "2.3.0",
"description": "db-migrate mysql driver",

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

Sorry, the diff of this file is not supported yet

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