mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #60793 from nextcloud/backport/60733/stable34
[stable34] fix(DB): Enforce foreign key constraints in SQLite
This commit is contained in:
commit
b67760a875
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