[merge] Fix realm migration from v1.4.13

Change-Id: If402ca9e48871ef086f173843d6b42d850294e6e
This commit is contained in:
SpiritCroc 2022-05-05 18:33:17 +02:00
parent bed3051812
commit 30d7c9b09b

View file

@ -38,6 +38,7 @@ internal class MigrateSessionTo027(realm: DynamicRealm) : RealmMigrator(realm, 2
.addField(LiveLocationShareAggregatedSummaryEntityFields.END_OF_LIVE_TIMESTAMP_MILLIS, Long::class.java)
.setNullable(LiveLocationShareAggregatedSummaryEntityFields.END_OF_LIVE_TIMESTAMP_MILLIS, true)
.addField(LiveLocationShareAggregatedSummaryEntityFields.LAST_LOCATION_CONTENT, String::class.java)
.addPrimaryKey(LiveLocationShareAggregatedSummaryEntityFields.EVENT_ID)
?: return
realm.schema.get("EventAnnotationsSummaryEntity")