diff --git a/src/org/fdroid/fdroid/DB.java b/src/org/fdroid/fdroid/DB.java index 4bf78d3fd..fe1498a3a 100644 --- a/src/org/fdroid/fdroid/DB.java +++ b/src/org/fdroid/fdroid/DB.java @@ -412,7 +412,6 @@ public class DB { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { - resetTransient(db); // Migrate repo list to new structure. (No way to change primary // key in sqlite - table must be recreated) @@ -443,6 +442,11 @@ public class DB { } } + // The other tables are transient and can just be reset. Do this after + // the repo table changes though, because it also clears the lastetag + // fields which didn't always exist. + resetTransient(db); + } }