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:
parent
fe626e3fd8
commit
de75c1fef5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user