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

sequelize-temporal

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-temporal - npm Package Compare versions

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",