From e1ded11056d64e5a7e052c1027972725a823f021 Mon Sep 17 00:00:00 2001 From: uykek Date: Wed, 27 May 2020 20:36:58 +0200 Subject: [PATCH] Fix bug that caused an exception if the app tries to upgrade the database --- .../controller/database/columns/DailySudokuColumns.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/columns/DailySudokuColumns.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/columns/DailySudokuColumns.java index 0c342d8..248371a 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/columns/DailySudokuColumns.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/columns/DailySudokuColumns.java @@ -38,6 +38,9 @@ public class DailySudokuColumns extends LevelColumns { HINTS_USED + INTEGER_TYPE + COMMA_SEP + TIME_NEEDED + TIME_TYPE + " )"; + public static String SQL_DELETE_ENTRIES = + "DROP TABLE IF EXISTS " + TABLE_NAME; + public static DailySudoku getLevel(Cursor c) { Level level = LevelColumns.getLevel(c);