Add migration
This commit is contained in:
parent
d39e3d022c
commit
012eff78e7
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ abstract class Database : RoomDatabase() {
|
|||
val instance = Room
|
||||
.databaseBuilder(context.applicationContext, Database::class.java,"AppDatabase")
|
||||
.addMigrations(MIGRATION_1_2)
|
||||
.addMigrations(MIGRATION_2_3)
|
||||
.fallbackToDestructiveMigration()
|
||||
.build()
|
||||
this.instance = instance
|
||||
|
|
Loading…
Add table
Reference in a new issue