From f3cb55f8c6e50a129e59330ea1d3403be322ec12 Mon Sep 17 00:00:00 2001 From: Stefano Sansone Date: Mon, 8 Apr 2024 12:05:43 +0200 Subject: [PATCH] allow room destructive migration --- android/Omnivore/app/build.gradle.kts | 4 ++-- .../src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/Omnivore/app/build.gradle.kts b/android/Omnivore/app/build.gradle.kts index b07b7a7681..fbd681889b 100644 --- a/android/Omnivore/app/build.gradle.kts +++ b/android/Omnivore/app/build.gradle.kts @@ -27,8 +27,8 @@ android { applicationId = "app.omnivore.omnivore" minSdk = 26 targetSdk = 34 - versionCode = 200001 - versionName = "0.200.1" + versionCode = 200002 + versionName = "0.200.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt index 4b77f32677..f843734f70 100644 --- a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt +++ b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/di/DatabaseModule.kt @@ -21,5 +21,7 @@ object DatabaseModule { context, OmnivoreDatabase::class.java, "omnivore-database", - ).build() + ) + .fallbackToDestructiveMigration() + .build() }