From 343b8bf08daaa8784998d50a4bdfcecee4ed820b Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 16 Feb 2022 12:29:08 +0000 Subject: [PATCH] Incrementing schema version - fixes pre-release launch crash (#5245) * updating the schema version to 25 to reflect the latest migration * adding changelog entry --- changelog.d/5243.bugfix | 1 + .../android/sdk/internal/database/RealmSessionStoreMigration.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/5243.bugfix diff --git a/changelog.d/5243.bugfix b/changelog.d/5243.bugfix new file mode 100644 index 0000000000..eb323c1ca4 --- /dev/null +++ b/changelog.d/5243.bugfix @@ -0,0 +1 @@ +Increments database schema to take advantage of homeserver capabilities entity migration (fixes crash in pre-release builds) \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt index 4bf352c06c..12e60da114 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt @@ -57,7 +57,7 @@ internal class RealmSessionStoreMigration @Inject constructor( override fun equals(other: Any?) = other is RealmSessionStoreMigration override fun hashCode() = 1000 - val schemaVersion = 24L + val schemaVersion = 25L override fun migrate(realm: DynamicRealm, oldVersion: Long, newVersion: Long) { Timber.d("Migrating Realm Session from $oldVersion to $newVersion")