diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-02-12 10:03:29 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-02-12 10:03:29 +0100 |
commit | 9f6fa1ce91e4ae21d549f9bc993f0c82282f2af8 (patch) | |
tree | e71e976a56e205445597e61cab0dfa85aa665721 /src/main/java | |
parent | e98d999b94e24cb1ac067683cade918167432907 (diff) |
database error while upgrading from db version 14 fixed
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java index 79d69348..9060ab99 100644 --- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java @@ -360,7 +360,7 @@ public class DatabaseBackend extends SQLiteOpenHelper { } } - if (oldVersion < 22 && newVersion >= 22) { + if (oldVersion < 22 && oldVersion >= 15 && newVersion >= 22) { db.execSQL("ALTER TABLE " + SQLiteAxolotlStore.IDENTITIES_TABLENAME + " ADD COLUMN " + SQLiteAxolotlStore.CERTIFICATE); } } |