Small code to update existing databases and ensure that all indices are created
parent
72caefec18
commit
04a792131f
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue