Fix broken migration

This commit is contained in:
valere 2023-02-23 14:57:28 +01:00
parent 2232839cd5
commit 1e66f4fa49
1 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ import org.matrix.android.sdk.internal.util.database.RealmMigrator
internal class MigrateSessionTo051(realm: DynamicRealm) : RealmMigrator(realm, 51) {
override fun doMigrate(realm: DynamicRealm) {
realm.schema.create("EventEntity")
.addField(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, Boolean::class.java)
.setNullable(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, true)
realm.schema.get("EventEntity")
?.addField(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, Boolean::class.java)
?.setNullable(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, true)
}
}