Fix database upgrade bug

This commit is contained in:
Ciaran Gultnieks 2013-05-22 21:30:02 +01:00
parent cb8bf870b1
commit 4e855b8132

View File

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