mirror of
https://github.com/ProtonMail/protoncore_android.git
synced 2026-05-15 09:50:41 +00:00
chore(coreexample): Handled newly introduced migrations in CoreExample.
MAILANDR-2434
This commit is contained in:
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 =
|
||||
|
||||
+5
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user