Database: Adapt to changes for examples in WLNS
All checks were successful
Test / Run tests (push) Successful in 3m17s

This commit is contained in:
2026-04-20 15:05:57 +02:00
parent a852dbb242
commit 9a371f472c
3 changed files with 10 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ namespace Elwig {
BranchName = entry.Item2;
BranchPlz = entry.Item3;
BranchLocation = entry.Item4?
.Split(",")[0]
.Split(" in ")[0]
.Split(" im ")[0]
.Split(" an ")[0]

View File

@@ -9,7 +9,7 @@ namespace Elwig.Helpers {
public static class AppDbUpdater {
// Don't forget to update value in Tests/fetch-resources.bat!
public static readonly int RequiredSchemaVersion = 38;
public static readonly int RequiredSchemaVersion = 39;
private static int VersionOffset = 0;

View File

@@ -0,0 +1,8 @@
-- schema version 38 to 39
PRAGMA writable_schema = ON;
UPDATE sqlite_schema SET sql = REPLACE(sql, '{2,}', '{2,64}')
WHERE type = 'table' AND name = 'member_email_address';
PRAGMA writable_schema = OFF;
UPDATE wb_gem SET hkid = 'WLLB' WHERE gkz IN (10710, 10723);