aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-02-12 10:03:29 +0100
committersteckbrief <steckbrief@chefmail.de>2016-02-12 10:03:29 +0100
commit9f6fa1ce91e4ae21d549f9bc993f0c82282f2af8 (patch)
treee71e976a56e205445597e61cab0dfa85aa665721
parente98d999b94e24cb1ac067683cade918167432907 (diff)
database error while upgrading from db version 14 fixed
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java2
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);
}
}