From e46874d04a4974ddb655962b6da8afb2928bc991 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Tue, 28 Mar 2017 15:25:36 +0800 Subject: fix: Other dialect duplicated add index problem Detect is using SQLite to add index --- lib/utils.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/utils.js (limited to 'lib/utils.js') 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' +} -- cgit v1.2.3