The database will be extended by DailySudokus. A new table was created for this purpose
This commit is contained in:
parent
2a92374f12
commit
eb5aa197f0
1 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,17 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(SQLiteDatabase db) {
|
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);
|
db.execSQL(LevelColumns.SQL_CREATE_ENTRIES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue