Small code to update existing databases and ensure that all indices are created

master
Evan Leybourn 2011-01-26 13:26:05 +11:00
parent 72caefec18
commit 04a792131f
1 changed files with 5 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public class CatalogueDBAdapter {
private final Context mCtx;
public static final int DATABASE_VERSION = 50;
public static final int DATABASE_VERSION = 51;
/**
* This is a specific version of the SQLiteOpenHelper class. It handles onCreate and onUpgrade events
@ -663,6 +663,10 @@ public class CatalogueDBAdapter {
message += "* Expand/Collapse all bug fixed\n\n";
message += "* The search query will be shown at the top of all search screens\n\n";
}
if (curVersion == 50) {
curVersion++;
createIndices(db);
}
}
}