Fix quality issues.

This commit is contained in:
Benoit Marty 2024-09-12 21:14:19 +02:00
parent 9dcb7c890f
commit 51c20b4572
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,7 @@ import javax.inject.Inject
* 4, 5, 6, 7, 8, 9: migrations from RiotX (which was previously 1, 2, 3, 4, 5, 6). * 4, 5, 6, 7, 8, 9: migrations from RiotX (which was previously 1, 2, 3, 4, 5, 6).
* 24: Delete nearly all the crypto DB * 24: Delete nearly all the crypto DB
*/ */
internal class RealmCryptoStoreMigration @Inject constructor( internal class RealmCryptoStoreMigration @Inject constructor() : MatrixRealmMigration(
) : MatrixRealmMigration(
dbName = "Crypto", dbName = "Crypto",
schemaVersion = 24L, schemaVersion = 24L,
) { ) {

View File

@ -21,7 +21,8 @@ import org.matrix.android.sdk.internal.util.database.RealmMigrator
internal class MigrateCryptoTo024(realm: DynamicRealm) : RealmMigrator(realm, 24) { internal class MigrateCryptoTo024(realm: DynamicRealm) : RealmMigrator(realm, 24) {
/** /**
* Delete the whole DB, except tables that are still used to store data: * Delete the whole DB, except tables that are still used to store data.
* Keep:
* - CryptoMetadataEntity * - CryptoMetadataEntity
* - MyDeviceLastSeenInfoEntity * - MyDeviceLastSeenInfoEntity
* - CryptoRoomEntity (but remove unused member 'outboundSessionInfo: OutboundGroupSessionInfoEntity') * - CryptoRoomEntity (but remove unused member 'outboundSessionInfo: OutboundGroupSessionInfoEntity')