Comparing version 1.5.0 to 1.6.0
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## 1.6.0 | ||
### Changed | ||
- Don't resolve the sequelize library anymore but use the instance's constructor | ||
## 1.5.0 | ||
@@ -5,0 +9,0 @@ ### Added |
@@ -7,4 +7,2 @@ 'use strict'; | ||
var redefine = require('redefine'); | ||
var resolve = require('resolve').sync; | ||
var Sequelize = require(resolve('sequelize', { basedir: process.cwd() })); | ||
@@ -47,5 +45,3 @@ /** | ||
// note 'tableName' (optional) also supported | ||
columnName: 'name', | ||
// You may need to override this for utf8mb4 charsets | ||
columnType: Sequelize.STRING | ||
columnName: 'name' | ||
}, this.options.storageOptions || {}); | ||
@@ -61,2 +57,4 @@ | ||
var modelName = this.options.storageOptions.modelName; | ||
var Sequelize = sequelize.constructor; | ||
var columnType = this.options.storageOptions.columnType || Sequelize.STRING; | ||
@@ -69,3 +67,3 @@ if (sequelize.isDefined(modelName)) { | ||
attributes[this.options.storageOptions.columnName] = { | ||
type: this.options.storageOptions.columnType, | ||
type: columnType, | ||
allowNull: false, | ||
@@ -72,0 +70,0 @@ unique: true, |
{ | ||
"name": "umzug", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Framework agnostic migration tool for Node.JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12
81017
1915