fix: Other dialect duplicated add index problem

Detect is using SQLite to add index
This commit is contained in:
BoHong Li 2017-03-28 15:25:36 +08:00
parent e26bb0503f
commit e46874d04a
2 changed files with 14 additions and 3 deletions

5
lib/utils.js Normal file
View file

@ -0,0 +1,5 @@
'use strict'
exports.isSQLite = function isSQLite (sequelize) {
return sequelize.options.dialect === 'sqlite'
}