sequelize-temporal
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -56,2 +56,8 @@ var _ = require('lodash'); | ||
var historyOptions = _.assign({}, modelOptions, historyOwnOptions); | ||
// We want to delete indexes that have unique constraint | ||
var indexes = historyOptions.indexes; | ||
if(Array.isArray(indexes)){ | ||
historyOptions.indexes = indexes.filter(function(index){return !index.unique && index.type != 'UNIQUE';}); | ||
} | ||
@@ -58,0 +64,0 @@ var modelHistory = sequelize.define(historyName, historyAttributes, historyOptions); |
{ | ||
"name": "sequelize-temporal", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Temporal tables for Sequelize", | ||
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16881
6
305