mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 10:25:51 +03:00
Fix quality issues.
This commit is contained in:
parent
9dcb7c890f
commit
51c20b4572
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue