Update Admin\Install #10
This commit is contained in:
parent
efae0295e4
commit
47ee32f4da
1 changed files with 6 additions and 1 deletions
|
@ -506,12 +506,17 @@ 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 = "\n"
|
||||
. ' \\PDO::ATTR_TIMEOUT => 5,' . "\n"
|
||||
. ' /* \'initSQLCommands\' => [\'PRAGMA journal_mode=WAL\',], */' . "\n"
|
||||
. ' \'initFunction\' => function ($db) {return $db->sqliteCreateFunction(\'CONCAT\', function (...$args) {return \\implode(\'\', $args);});},' . "\n"
|
||||
. ' ';
|
||||
$this->c->DB_OPTIONS = [
|
||||
PDO::ATTR_TIMEOUT => 5,
|
||||
'initSQLCommands' => [
|
||||
'PRAGMA journal_mode=WAL',
|
||||
],
|
||||
'initFunction' => function ($db) {return $db->sqliteCreateFunction('CONCAT', function (...$args) {return \implode('', $args);});},
|
||||
];
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue