diff --git a/app/build.gradle b/app/build.gradle index 9c397b5a60..4479b85c56 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,7 +31,7 @@ android { minSdkVersion 14 targetSdkVersion 27 versionCode 999999 - versionName "1.5.5-dev" + versionName "1.5.6-dev" vectorDrawables.useSupportLibrary = true javaCompileOptions.annotationProcessorOptions.arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } diff --git a/app/src/main/java/de/tum/in/tumcampusapp/database/TcaDb.java b/app/src/main/java/de/tum/in/tumcampusapp/database/TcaDb.java index 8fd2753093..8b8001a9d6 100644 --- a/app/src/main/java/de/tum/in/tumcampusapp/database/TcaDb.java +++ b/app/src/main/java/de/tum/in/tumcampusapp/database/TcaDb.java @@ -110,6 +110,7 @@ public static synchronized TcaDb getInstance(Context context) { instance = Room.databaseBuilder(context.getApplicationContext(), TcaDb.class, Const.DATABASE_NAME) .allowMainThreadQueries() .addMigrations(migrations) + .fallbackToDestructiveMigration() .build(); } return instance;