Commit 9ef015c 1 parent 5ecba51 commit 9ef015c Copy full SHA for 9ef015c
File tree 1 file changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/data/cache
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ import io.realm.kotlin.migration.AutomaticSchemaMigration.MigrationContext
23
23
24
24
val USER_INFO_MIGRATION = AutomaticSchemaMigration { migrationContext ->
25
25
SentryDebug .addMigrationBreadcrumb(migrationContext)
26
- migrationContext.deleteRealmFromFirstMigration ()
26
+ migrationContext.deleteRealmAt1stMigration ()
27
27
}
28
28
29
29
val MAILBOX_INFO_MIGRATION = AutomaticSchemaMigration { migrationContext ->
30
30
SentryDebug .addMigrationBreadcrumb(migrationContext)
31
- migrationContext.deleteRealmFromFirstMigration ()
31
+ migrationContext.deleteRealmAt1stMigration ()
32
32
}
33
33
34
34
val MAILBOX_CONTENT_MIGRATION = AutomaticSchemaMigration { migrationContext ->
35
35
SentryDebug .addMigrationBreadcrumb(migrationContext)
36
- migrationContext.deleteRealmFromFirstMigration ()
36
+ migrationContext.deleteRealmAt1stMigration ()
37
37
}
38
38
39
39
// Migrate to version #1
40
- private fun MigrationContext.deleteRealmFromFirstMigration () {
40
+ private fun MigrationContext.deleteRealmAt1stMigration () {
41
41
if (oldRealm.schemaVersion() < 1L ) newRealm.deleteAll()
42
42
}
You can’t perform that action at this time.
0 commit comments