fix - database update

This commit is contained in:
Martin/Geno 2019-10-03 16:29:30 +02:00
parent c3cb5f2838
commit 875d71e9be
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 4 additions and 3 deletions

View File

@ -84,8 +84,8 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 25
versionCode 341 versionCode 342
versionName "2.5.11" versionName "2.5.11.1"
archivesBaseName += "-$versionName" archivesBaseName += "-$versionName"
applicationId "eu.sum7.conversations" applicationId "eu.sum7.conversations"
resValue "string", "applicationId", applicationId resValue "string", "applicationId", applicationId

View File

@ -0,0 +1 @@
• Fixed crash on internal database update

View File

@ -527,7 +527,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
db.execSQL("ALTER TABLE " + Message.TABLENAME + " ADD COLUMN " + Message.BODY_LANGUAGE); db.execSQL("ALTER TABLE " + Message.TABLENAME + " ADD COLUMN " + Message.BODY_LANGUAGE);
} }
db.execSQL("DROP TABLE resolver_results"); db.execSQL("DROP TABLE IF EXISTS resolver_results");
} }
private void canonicalizeJids(SQLiteDatabase db) { private void canonicalizeJids(SQLiteDatabase db) {