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

Commit 47ab02a

Browse files
Fixed wrong field name in DatabaseHelper
1 parent cc39e6a commit 47ab02a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
129129
// any time you make changes to your database objects, you may have to increase the database version
130130

131131
public static final int DATABASE_VERSION = 224;
132-
132+
133133
private static DatabaseHelper instance = null;
134134

135135
public static void init(Context context) {
@@ -1531,7 +1531,7 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
15311531
getDao(Contact.class).executeRaw("ALTER TABLE contacts ADD COLUMN healthConditions_id bigint REFERENCES healthConditions(id);");
15321532

15331533
case 222:
1534-
currentversion = 222;
1534+
currentVersion = 222;
15351535
// Re-synchronize all contacts
15361536
getDao(Case.class).executeRaw("UPDATE cases SET changeDate = 0 WHERE changeDate IS NOT NULL;");
15371537
getDao(Contact.class).executeRaw("UPDATE contacts SET changeDate = 0 WHERE changeDate IS NOT NULL;");
@@ -1548,9 +1548,9 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
15481548
getDao(MaternalHistory.class).executeRaw("UPDATE maternalHistory SET changeDate = 0 WHERE changeDate IS NOT NULL;");
15491549
getDao(PortHealthInfo.class).executeRaw("UPDATE portHealthInfo SET changeDate = 0 WHERE changeDate IS NOT NULL;");
15501550
getDao(Location.class).executeRaw("UPDATE location SET changeDate = 0 WHERE changeDate IS NOT NULL;");
1551-
1552-
case 223:
1553-
currentVersion = 223;
1551+
1552+
case 223:
1553+
currentVersion = 223;
15541554
getDao(Location.class).executeRaw("ALTER TABLE location RENAME TO tmp_location;");
15551555
getDao(Location.class).executeRaw(
15561556
"CREATE TABLE location(street VARCHAR, areaType VARCHAR, city VARCHAR, community_id BIGINT, details VARCHAR, district_id BIGINT, latLonAccuracy FLOAT, "
@@ -1565,8 +1565,8 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
15651565
getDao(Location.class).executeRaw("ALTER TABLE location ADD COLUMN houseNumber varchar(255);");
15661566
getDao(Location.class).executeRaw("ALTER TABLE location ADD COLUMN additionalInformation varchar(255);");
15671567
getDao(Location.class).executeRaw("ALTER TABLE location ADD COLUMN addressType varchar(255);");
1568-
getDao(Location.class).executeRaw("ALTER TABLE location ADD COLUMN addressTypeDetails varchar(255);");
1569-
1568+
getDao(Location.class).executeRaw("ALTER TABLE location ADD COLUMN addressTypeDetails varchar(255);");
1569+
15701570
// ATTENTION: break should only be done after last version
15711571
break;
15721572
default:

0 commit comments

Comments
 (0)