From 30a5abaa342683982c7c6c828b5e69b725f2207f Mon Sep 17 00:00:00 2001 From: Nite Date: Sat, 17 Oct 2020 12:38:48 +0200 Subject: [PATCH] Fixed exception on Room downgrade --- .../kotlin/org/moire/ultrasonic/di/AppPermanentStorageModule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/di/AppPermanentStorageModule.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/di/AppPermanentStorageModule.kt index b54102e0..07a6fdf8 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/di/AppPermanentStorageModule.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/di/AppPermanentStorageModule.kt @@ -23,6 +23,7 @@ val appPermanentStorage = module { "ultrasonic-database" ) .addMigrations(MIGRATION_1_2) + .fallbackToDestructiveMigrationOnDowngrade() .build() }