Skip to content

Commit 93f4f96

Browse files
authored
Merge pull request #3799 from stefanosansone/fix/room-migrations
Android - Allow room destructive migration
2 parents bc0e38f + f3cb55f commit 93f4f96

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

android/Omnivore/app/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ android {
2727
applicationId = "app.omnivore.omnivore"
2828
minSdk = 26
2929
targetSdk = 34
30-
versionCode = 200001
31-
versionName = "0.200.1"
30+
versionCode = 200002
31+
versionName = "0.200.2"
3232

3333
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3434
vectorDrawables {

android/Omnivore/app/src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ object DatabaseModule {
2121
context,
2222
OmnivoreDatabase::class.java,
2323
"omnivore-database",
24-
).build()
24+
)
25+
.fallbackToDestructiveMigration()
26+
.build()
2527
}

0 commit comments

Comments
 (0)