mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix crash in Realm migration
This commit is contained in:
parent
b31dfcfe4f
commit
db0a958708
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue