only set wal for sqlite

This commit is contained in:
Henry Oswald committed 2018-07-17 12:53:07 +01:00
1 parent 3478c28fa3
commit 2b6032b249
1 file changed
+2 -1
+2 -1
View File
@@ -14,7 +14,8 @@ sequelize = new Sequelize(
options
)
sequelize.query("PRAGMA journal_mode=WAL;")
if Settings.mysql.clsi.dialect == "sqlite"
sequelize.query("PRAGMA journal_mode=WAL;")
module.exports =
UrlCache: sequelize.define("UrlCache", {