Browse Source

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 years ago
parent
commit
da7d4d4e03
1 changed files with 1 additions and 1 deletions
  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;
                 break;
             case 'sqlite':
             case 'sqlite':
                 $this->c->DB_DSN         = "sqlite:!PATH!{$dbname}";
                 $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     = [
                 $this->c->DB_OPTIONS     = [
                     PDO::ATTR_TIMEOUT => 5,
                     PDO::ATTR_TIMEOUT => 5,
                     'initSQLCommands' => [
                     'initSQLCommands' => [