From dfa17d1339e2970b202edc5a9fb2a20dab7c57bc Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 14 Jul 2017 10:34:01 +0200 Subject: [PATCH] more migration fixes for updating from 1.6.0 to 1.19.3 --- .../eu/siacs/conversations/persistance/DatabaseBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java index e9684a364..b88fe0071 100644 --- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java @@ -296,7 +296,7 @@ public class DatabaseBackend extends SQLiteOpenHelper { /* Any migrations that alter the Account table need to happen BEFORE this migration, as it * depends on account de-serialization. */ - if (oldVersion < 17 && newVersion >= 17) { + if (oldVersion < 17 && newVersion >= 17 && newVersion < 31) { List accounts = getAccounts(db); for (Account account : accounts) { String ownDeviceIdString = account.getKey(SQLiteAxolotlStore.JSONKEY_REGISTRATION_ID);