Cleaning
This commit is contained in:
parent
4ee34126bd
commit
afa1cf7d6c
|
@ -490,9 +490,9 @@ internal class RealmCryptoStoreMigration @Inject constructor(private val crossSi
|
||||||
private fun migrateTo12(realm: DynamicRealm) {
|
private fun migrateTo12(realm: DynamicRealm) {
|
||||||
Timber.d("Step 11 -> 12")
|
Timber.d("Step 11 -> 12")
|
||||||
val outboundEntitySchema = realm.schema.create("OutboundGroupSessionInfoEntity")
|
val outboundEntitySchema = realm.schema.create("OutboundGroupSessionInfoEntity")
|
||||||
?.addField(OutboundGroupSessionInfoEntityFields.SERIALIZED_OUTBOUND_SESSION_DATA, String::class.java)
|
.addField(OutboundGroupSessionInfoEntityFields.SERIALIZED_OUTBOUND_SESSION_DATA, String::class.java)
|
||||||
?.addField(OutboundGroupSessionInfoEntityFields.CREATION_TIME, Long::class.java)
|
.addField(OutboundGroupSessionInfoEntityFields.CREATION_TIME, Long::class.java)
|
||||||
?.setNullable(OutboundGroupSessionInfoEntityFields.CREATION_TIME, true)
|
.setNullable(OutboundGroupSessionInfoEntityFields.CREATION_TIME, true)
|
||||||
|
|
||||||
realm.schema.get("CryptoRoomEntity")
|
realm.schema.get("CryptoRoomEntity")
|
||||||
?.addRealmObjectField(CryptoRoomEntityFields.OUTBOUND_SESSION_INFO.`$`, outboundEntitySchema)
|
?.addRealmObjectField(CryptoRoomEntityFields.OUTBOUND_SESSION_INFO.`$`, outboundEntitySchema)
|
||||||
|
|
Loading…
Reference in New Issue