diff options
author | BoHong Li | 2017-03-28 15:25:36 +0800 |
---|---|---|
committer | BoHong Li | 2017-03-28 15:28:33 +0800 |
commit | e46874d04a4974ddb655962b6da8afb2928bc991 (patch) | |
tree | 3fd13e29ae3520bdb6a2e5ec061aca1094047d7c /lib/utils.js | |
parent | e26bb0503f962e1ee56dfa138b43af4653065812 (diff) |
fix: Other dialect duplicated add index problem
Detect is using SQLite to add index
Diffstat (limited to '')
-rw-r--r-- | lib/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/utils.js b/lib/utils.js new file mode 100644 index 00000000..6c36549b --- /dev/null +++ b/lib/utils.js @@ -0,0 +1,5 @@ +'use strict' + +exports.isSQLite = function isSQLite (sequelize) { + return sequelize.options.dialect === 'sqlite' +} |