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.
This commit is contained in:
Peter Serwylo 2017-10-05 17:04:49 +11:00
parent fe626e3fd8
commit de75c1fef5

View File

@ -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;
}