|
@@ -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;
|