chore(coreexample): Handled newly introduced migrations in CoreExample.

MAILANDR-2434
This commit is contained in:
Niccolò Forlini
2025-01-09 13:20:50 +01:00
parent e61963e6c3
commit aeca23d800
3 changed files with 3551 additions and 1 deletions
File diff suppressed because it is too large Load Diff
@@ -202,7 +202,7 @@ abstract class AppDatabase :
companion object {
const val name = "db-account-manager"
const val version = 57
const val version = 58
val migrations = listOf(
AppDatabaseMigrations.MIGRATION_1_2,
@@ -261,6 +261,7 @@ abstract class AppDatabase :
AppDatabaseMigrations.MIGRATION_54_55,
AppDatabaseMigrations.MIGRATION_55_56,
AppDatabaseMigrations.MIGRATION_56_57,
AppDatabaseMigrations.MIGRATION_57_58,
)
fun buildDatabase(context: Context): AppDatabase =
@@ -400,4 +400,9 @@ object AppDatabaseMigrations {
AccountDatabase.MIGRATION_9.migrate(db)
}
}
val MIGRATION_57_58 = object : Migration(57, 58) {
override fun migrate(db: SupportSQLiteDatabase) {
MailSettingsDatabase.MIGRATION_2.migrate(db)
}
}
}