mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
Minor bugfixes: external books from archives in the Library
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1743 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
c7d01a1e0a
commit
e7738a2a5c
3 changed files with 12 additions and 1 deletions
|
@ -58,7 +58,7 @@ final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
|
||||
private void migrate() {
|
||||
final int version = myDatabase.getVersion();
|
||||
final int currentVersion = 9;
|
||||
final int currentVersion = 10;
|
||||
if (version >= currentVersion) {
|
||||
return;
|
||||
}
|
||||
|
@ -85,6 +85,8 @@ final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
updateTables7();
|
||||
case 8:
|
||||
updateTables8();
|
||||
case 9:
|
||||
updateTables9();
|
||||
}
|
||||
myDatabase.setTransactionSuccessful();
|
||||
myDatabase.endTransaction();
|
||||
|
@ -1059,4 +1061,8 @@ final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
"CREATE TABLE IF NOT EXISTS BookList ( " +
|
||||
"book_id INTEGER UNIQUE NOT NULL REFERENCES Books (book_id))");
|
||||
}
|
||||
|
||||
private void updateTables9() {
|
||||
myDatabase.execSQL("CREATE INDEX BookList_BookIndex ON BookList (book_id)");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue