AppDbUpdater: Do not turn off foreign keys per default
This commit is contained in:
@ -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};
|
||||
""");
|
||||
|
Reference in New Issue
Block a user