diff --git a/Elwig/Helpers/AppDbUpdater.cs b/Elwig/Helpers/AppDbUpdater.cs index 76dfb50..f1a3b1f 100644 --- a/Elwig/Helpers/AppDbUpdater.cs +++ b/Elwig/Helpers/AppDbUpdater.cs @@ -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}; """); diff --git a/Elwig/Resources/Sql/17-18.sql b/Elwig/Resources/Sql/17-18.sql index c14054c..8bf793a 100644 --- a/Elwig/Resources/Sql/17-18.sql +++ b/Elwig/Resources/Sql/17-18.sql @@ -84,7 +84,6 @@ UPDATE area_commitment SET cultid = NULL WHERE cultid = 'N'; DELETE FROM wine_cultivation WHERE cultid = 'N'; UPDATE wine_cultivation SET cultid = 'B', name = 'Bio', description = 'AT-BIO-302' WHERE cultid = 'BIO'; UPDATE wine_cultivation SET description = 'Kontrollierte Integrierte Produktion' WHERE cultid = 'KIP'; -UPDATE area_commitment SET cultid = 'B' WHERE cultid = 'BIO'; UPDATE area_commitment SET cultid = 'B', vtrgid = SUBSTR(vtrgid, 1, 2) WHERE vtrgid LIKE '__B'; UPDATE area_commitment SET cultid = 'B' WHERE vtrgid LIKE '__HU';