Android fix for #282

This commit is contained in:
Isaac Hutt 2016-08-15 18:37:18 +01:00 committed by GitHub
parent b0567fcc92
commit 3ee4388e63

View File

@ -81,7 +81,7 @@ public class KiwixDatabase extends SquidDatabase {
db.execSQL("DROP TABLE IF EXISTS recents");
tryCreateTable(RecentSearch.TABLE);
}
if (newVersion >= 3 && (oldVersion < 3 || oldVersion == 7)) {
if (newVersion >= 3 && (oldVersion < 3 || oldVersion == 7 || oldVersion == 6)) {
db.execSQL("DROP TABLE IF EXISTS recents");
db.execSQL("DROP TABLE IF EXISTS recentsearches");
tryCreateTable(RecentSearch.TABLE);