Fix broken migration
This commit is contained in:
parent
2232839cd5
commit
1e66f4fa49
|
@ -27,8 +27,8 @@ import org.matrix.android.sdk.internal.util.database.RealmMigrator
|
||||||
internal class MigrateSessionTo051(realm: DynamicRealm) : RealmMigrator(realm, 51) {
|
internal class MigrateSessionTo051(realm: DynamicRealm) : RealmMigrator(realm, 51) {
|
||||||
|
|
||||||
override fun doMigrate(realm: DynamicRealm) {
|
override fun doMigrate(realm: DynamicRealm) {
|
||||||
realm.schema.create("EventEntity")
|
realm.schema.get("EventEntity")
|
||||||
.addField(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, Boolean::class.java)
|
?.addField(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, Boolean::class.java)
|
||||||
.setNullable(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, true)
|
?.setNullable(EventEntityFields.IS_VERIFICATION_STATE_DIRTY, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue