Skip to content

Commit

Permalink
* Fixes: Migration from 14_16
Browse files Browse the repository at this point in the history
  • Loading branch information
AjeshRPai committed Jul 10, 2023
1 parent f7088f6 commit a8756e3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ abstract class WPAndroidDatabase : RoomDatabase() {
.addMigrations(MIGRATION_3_4)
.addMigrations(MIGRATION_5_6)
.addMigrations(MIGRATION_7_8)
.addMigrations(MIGRATION_14_15)
.addMigrations(MIGRATION_15_16)
.build()

Expand Down Expand Up @@ -209,6 +210,16 @@ abstract class WPAndroidDatabase : RoomDatabase() {
}
}

val MIGRATION_14_15 = object : Migration(14,15){
override fun migrate(database: SupportSQLiteDatabase) {
database.apply {
execSQL(
"DROP TABLE IF EXISTS `BlazeStatus`"
)
}
}
}

val MIGRATION_15_16 = object : Migration(15,16){
override fun migrate(database: SupportSQLiteDatabase) {
database.apply {
Expand Down

0 comments on commit a8756e3

Please sign in to comment.