Fix bug that caused an exception if the app tries to upgrade the database

This commit is contained in:
uykek 2020-05-27 20:36:58 +02:00
parent 88a7f7813e
commit e1ded11056

View file

@ -38,6 +38,9 @@ public class DailySudokuColumns extends LevelColumns {
HINTS_USED + INTEGER_TYPE + COMMA_SEP + HINTS_USED + INTEGER_TYPE + COMMA_SEP +
TIME_NEEDED + TIME_TYPE + " )"; TIME_NEEDED + TIME_TYPE + " )";
public static String SQL_DELETE_ENTRIES =
"DROP TABLE IF EXISTS " + TABLE_NAME;
public static DailySudoku getLevel(Cursor c) { public static DailySudoku getLevel(Cursor c) {
Level level = LevelColumns.getLevel(c); Level level = LevelColumns.getLevel(c);