From e8c735e794fb37ac21cff935e234d606e90e92df Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 17 Jul 2018 12:53:07 +0100 Subject: [PATCH] only set wal for sqlite --- services/clsi/app/coffee/db.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/coffee/db.coffee b/services/clsi/app/coffee/db.coffee index c21da6d5bf..c8866e0c92 100644 --- a/services/clsi/app/coffee/db.coffee +++ b/services/clsi/app/coffee/db.coffee @@ -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", {