mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Fix broken migration
This commit is contained in:
parent
2232839cd5
commit
1e66f4fa49
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue