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

Commit 2e4116e

Browse files
lgallgal
authored andcommitted
SORMAS-Foundation#3411 remove unwanted mobile DB migration
1 parent 690ae75 commit 2e4116e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
151151
public static final String DATABASE_NAME = "sormas.db";
152152
// any time you make changes to your database objects, you may have to increase the database version
153153

154-
public static final int DATABASE_VERSION = 256;
154+
public static final int DATABASE_VERSION = 255;
155155

156156
private static DatabaseHelper instance = null;
157157

@@ -1820,13 +1820,6 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
18201820
// ATTENTION: break should only be done after last version
18211821
break;
18221822

1823-
case 255:
1824-
currentVersion = 255;
1825-
1826-
getDao(Person.class).executeRaw("ALTER TABLE person ADD COLUMN armedForcesRelationType varchar(255);");
1827-
1828-
// ATTENTION: break should only be done after last version
1829-
break;
18301823
default:
18311824
throw new IllegalStateException("onUpgrade() with unknown oldVersion " + oldVersion);
18321825
}

0 commit comments

Comments
 (0)