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

Commit 3fdc219

Browse files
lgallgal
authored andcommitted
SORMAS-Foundation#2977 fix android database migration
1 parent 6e1feba commit 3fdc219

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
137137
public static final String DATABASE_NAME = "sormas.db";
138138
// any time you make changes to your database objects, you may have to increase the database version
139139

140-
public static final int DATABASE_VERSION = 235;
140+
public static final int DATABASE_VERSION = 236;
141141

142142
private static DatabaseHelper instance = null;
143143

@@ -1697,11 +1697,8 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
16971697
.executeRaw("ALTER TABLE contacts ADD COLUMN sormasToSormasOriginInfo_id bigint REFERENCES sormasToSormasOriginInfo(id);");
16981698
getDao(Contact.class).executeRaw("ALTER TABLE contacts ADD COLUMN ownershipHandedOver boolean;");
16991699

1700-
// ATTENTION: break should only be done after last version
1701-
break;
1702-
1703-
case 234:
1704-
currentVersion = 234;
1700+
case 235:
1701+
currentVersion = 235;
17051702
getDao(Case.class).executeRaw("ALTER TABLE cases ADD COLUMN wasInQuarantineBeforeIsolation varchar(255);");
17061703

17071704
// ATTENTION: break should only be done after last version

0 commit comments

Comments
 (0)