summaryrefslogtreecommitdiff
path: root/lib/utils.js
diff options
context:
space:
mode:
authorRaccoon2017-03-28 16:48:30 +0800
committerGitHub2017-03-28 16:48:30 +0800
commit0b4dac74ed8c0da66c340add45ce78a067c69ee9 (patch)
tree3fd13e29ae3520bdb6a2e5ec061aca1094047d7c /lib/utils.js
parentb2985085d011cad374c76ae75f548fdefb15c258 (diff)
parente46874d04a4974ddb655962b6da8afb2928bc991 (diff)
Merge pull request #406 from hackmdio/feature/add_missing_migration
fix: Add missing migration
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js5
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'
+}