mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix crash in Realm migration
This commit is contained in:
parent
b31dfcfe4f
commit
db0a958708
@ -35,5 +35,7 @@ internal object GlobalRealmMigration : RealmMigration {
|
||||
private fun migrateTo1(realm: DynamicRealm) {
|
||||
realm.schema.create("KnownServerUrlEntity")
|
||||
.addField(KnownServerUrlEntityFields.URL, String::class.java)
|
||||
.addPrimaryKey(KnownServerUrlEntityFields.URL)
|
||||
.setRequired(KnownServerUrlEntityFields.URL, true)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user