only set wal for sqlite

This commit is contained in:
Henry Oswald 2018-07-17 12:53:07 +01:00
parent 52a39b02ce
commit e8c735e794

View file

@ -14,7 +14,8 @@ sequelize = new Sequelize(
options options
) )
sequelize.query("PRAGMA journal_mode=WAL;") if Settings.mysql.clsi.dialect == "sqlite"
sequelize.query("PRAGMA journal_mode=WAL;")
module.exports = module.exports =
UrlCache: sequelize.define("UrlCache", { UrlCache: sequelize.define("UrlCache", {