mirror of
https://github.com/pawelorzech/Swoosh.git
synced 2026-03-31 20:15:41 +00:00
fix: add fallbackToDestructiveMigration to prevent Room schema crash
This commit is contained in:
parent
b976ceb9df
commit
48127bffbe
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ abstract class AppDatabase : RoomDatabase() {
|
|||
"swoosh_database"
|
||||
)
|
||||
.addMigrations(MIGRATION_1_2)
|
||||
.fallbackToDestructiveMigration()
|
||||
.build()
|
||||
INSTANCE = instance
|
||||
instance
|
||||
|
|
|
|||
Loading…
Reference in a new issue