The database will be extended by DailySudokus. A new table was created for this purpose

This commit is contained in:
Erik Waegerle 2020-05-20 12:32:41 +02:00
parent 2a92374f12
commit eb5aa197f0

View file

@ -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);
}