Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 87276de

Browse files
SORMAS-Foundation#2993 - Fixed mobile database migration
1 parent c1916bd commit 87276de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sormas-app/app/src/main/java/de/symeda/sormas/app/backend/common/DatabaseHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,8 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
17301730

17311731
case 242:
17321732
currentVersion = 242;
1733-
getDao(Country.class).executeRaw("ALTER TABLE country ADD COLUMN archived SMALLINT DEFAULT 0;");
1733+
TableUtils.createTable(connectionSource, Country.class);
1734+
17341735
case 243:
17351736
currentVersion = 243;
17361737
TableUtils.createTable(connectionSource, Exposure.class);

0 commit comments

Comments
 (0)