浏览代码

Set journal_mode for installation only

SQLite keeps the mode journal_mode = WAL in the database until setting a different mode with PRAGMA journal_mode=...
Visman 3 年之前
父节点
当前提交
da7d4d4e03
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pages/Admin/Install.php

+ 1 - 1
app/Models/Pages/Admin/Install.php

@@ -506,7 +506,7 @@ class Install extends Admin
                 break;
             case 'sqlite':
                 $this->c->DB_DSN         = "sqlite:!PATH!{$dbname}";
-                $this->c->DB_OPTS_AS_STR = '\\PDO::ATTR_TIMEOUT => 5, \'initSQLCommands\' => [\'PRAGMA journal_mode=WAL\',],';
+                $this->c->DB_OPTS_AS_STR = '\\PDO::ATTR_TIMEOUT => 5, /* \'initSQLCommands\' => [\'PRAGMA journal_mode=WAL\',], */';
                 $this->c->DB_OPTIONS     = [
                     PDO::ATTR_TIMEOUT => 5,
                     'initSQLCommands' => [