From eb5aa197f0f848716467921dda1774f37c35fb03 Mon Sep 17 00:00:00 2001 From: Erik Waegerle Date: Wed, 20 May 2020 12:32:41 +0200 Subject: [PATCH] The database will be extended by DailySudokus. A new table was created for this purpose --- .../controller/database/DatabaseHelper.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/DatabaseHelper.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/DatabaseHelper.java index 85dd131..27041b4 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/DatabaseHelper.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/database/DatabaseHelper.java @@ -27,6 +27,17 @@ public class DatabaseHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { + + String createTable = + "CREATE TABLE DAILYSUDOKU" + + "( DATE TEXT PRIMARY KEY " + + " , LEVEL_difficulty TEXT " + + " , LEVEL_gametype TEXT" + + " , LEVEL_time INTEGER " + + " , LEVEL_puzzle TEXT" + + ")" + ; + db.execSQL(LevelColumns.SQL_CREATE_ENTRIES); }