more migration fixes for updating from 1.6.0 to 1.19.3

This commit is contained in:
Daniel Gultsch 2017-07-14 10:34:01 +02:00
parent 91119ab691
commit dfa17d1339

View file

@ -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<Account> accounts = getAccounts(db);
for (Account account : accounts) {
String ownDeviceIdString = account.getKey(SQLiteAxolotlStore.JSONKEY_REGISTRATION_ID);