Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fallback to destructive migration, just in case and do release
Browse files Browse the repository at this point in the history
  • Loading branch information
kordianbruck committed Apr 5, 2018
1 parent f39ed0d commit d9babbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9babbf

Please sign in to comment.