mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
fix: Other dialect duplicated add index problem
Detect is using SQLite to add index
This commit is contained in:
parent
e26bb0503f
commit
e46874d04a
2 changed files with 14 additions and 3 deletions
5
lib/utils.js
Normal file
5
lib/utils.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
exports.isSQLite = function isSQLite (sequelize) {
|
||||
return sequelize.options.dialect === 'sqlite'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue