Incrementing schema version - fixes pre-release launch crash (#5245)

* updating the schema version to 25 to reflect the latest migration
* adding changelog entry
This commit is contained in:
Adam Brown 2022-02-16 12:29:08 +00:00 committed by GitHub
parent 6c4f389342
commit 343b8bf08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/5243.bugfix Normal file
View File

@ -0,0 +1 @@
Increments database schema to take advantage of homeserver capabilities entity migration (fixes crash in pre-release builds)

View File

@ -57,7 +57,7 @@ internal class RealmSessionStoreMigration @Inject constructor(
override fun equals(other: Any?) = other is RealmSessionStoreMigration override fun equals(other: Any?) = other is RealmSessionStoreMigration
override fun hashCode() = 1000 override fun hashCode() = 1000
val schemaVersion = 24L val schemaVersion = 25L
override fun migrate(realm: DynamicRealm, oldVersion: Long, newVersion: Long) { override fun migrate(realm: DynamicRealm, oldVersion: Long, newVersion: Long) {
Timber.d("Migrating Realm Session from $oldVersion to $newVersion") Timber.d("Migrating Realm Session from $oldVersion to $newVersion")