Fix migration from 21 to 22

This commit is contained in:
ariskotsomitopoulos 2022-01-12 18:40:33 +02:00
parent c049351130
commit b89054685f

View file

@ -91,6 +91,7 @@ internal class RealmSessionStoreMigration @Inject constructor(
if (oldVersion <= 18) migrateTo19(realm) if (oldVersion <= 18) migrateTo19(realm)
if (oldVersion <= 19) migrateTo20(realm) if (oldVersion <= 19) migrateTo20(realm)
if (oldVersion <= 20) migrateTo21(realm) if (oldVersion <= 20) migrateTo21(realm)
if (oldVersion <= 21) migrateTo22(realm)
} }
private fun migrateTo1(realm: DynamicRealm) { private fun migrateTo1(realm: DynamicRealm) {
@ -447,7 +448,7 @@ internal class RealmSessionStoreMigration @Inject constructor(
} }
} }
private fun migrateTo21(realm: DynamicRealm) { private fun migrateTo22(realm: DynamicRealm) {
Timber.d("Step 21 -> 22") Timber.d("Step 21 -> 22")
val eventEntity = realm.schema.get("TimelineEventEntity") ?: return val eventEntity = realm.schema.get("TimelineEventEntity") ?: return