AppDbUpdater: Do not turn off foreign keys per default

This commit is contained in:
2024-02-29 02:10:57 +01:00
parent 3b94875a7f
commit 614e0010fd
2 changed files with 0 additions and 3 deletions

View File

@ -73,7 +73,6 @@ namespace Elwig.Helpers {
await AppDbContext.ExecuteBatch(cnx, """
PRAGMA locking_mode = EXCLUSIVE;
PRAGMA foreign_keys = OFF;
BEGIN EXCLUSIVE;
""");
foreach (var script in toExecute) {
@ -87,7 +86,6 @@ namespace Elwig.Helpers {
await AppDbContext.ExecuteBatch(cnx, $"""
COMMIT;
PRAGMA foreign_keys = ON;
VACUUM;
PRAGMA schema_version = {toVersion * 100 + VersionOffset};
""");