From de75c1fef5f2961391561f591951c28b0f4a26ad Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Thu, 5 Oct 2017 17:04:49 +1100 Subject: [PATCH] Bump db version to force early adopters to upgrade db again. Also does this with the additional field for ignoring vuln apps. This should be safe, because there is a check for if (columnExists()) which will only pass if people don't already have this column. Fixes #1181. --- app/src/main/java/org/fdroid/fdroid/data/DBHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/data/DBHelper.java b/app/src/main/java/org/fdroid/fdroid/data/DBHelper.java index 7075888dc..22555916b 100644 --- a/app/src/main/java/org/fdroid/fdroid/data/DBHelper.java +++ b/app/src/main/java/org/fdroid/fdroid/data/DBHelper.java @@ -208,7 +208,7 @@ class DBHelper extends SQLiteOpenHelper { + "primary key(" + ApkAntiFeatureJoinTable.Cols.APK_ID + ", " + ApkAntiFeatureJoinTable.Cols.ANTI_FEATURE_ID + ") " + " );"; - protected static final int DB_VERSION = 75; + protected static final int DB_VERSION = 76; private final Context context; @@ -304,7 +304,7 @@ class DBHelper extends SQLiteOpenHelper { } private void addIgnoreVulnPref(SQLiteDatabase db, int oldVersion) { - if (oldVersion >= 74) { + if (oldVersion >= 76) { return; } @@ -315,7 +315,7 @@ class DBHelper extends SQLiteOpenHelper { } private void addApkAntiFeatures(SQLiteDatabase db, int oldVersion) { - if (oldVersion >= 75) { + if (oldVersion >= 76) { return; }