mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(DB): Enforce foreign key constraints in SQLite
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
0a4d4bc8ab
commit
0ae5a05c25
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ class SQLiteSessionInit implements EventSubscriber {
|
|||
$sensitive = $this->caseSensitiveLike ? 'true' : 'false';
|
||||
$args->getConnection()->executeUpdate('PRAGMA case_sensitive_like = ' . $sensitive);
|
||||
$args->getConnection()->executeUpdate('PRAGMA journal_mode = ' . $this->journalMode);
|
||||
$args->getConnection()->executeUpdate('PRAGMA foreign_keys = true');
|
||||
/** @var \Doctrine\DBAL\Driver\PDO\Connection $connection */
|
||||
$connection = $args->getConnection()->getWrappedConnection();
|
||||
$pdo = $connection->getWrappedConnection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue