mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
add new column to be used to track whether a game is in use -- not
used yet but anticipated and I'm added a lot this release anyway....
This commit is contained in:
parent
20ad465b96
commit
bfc82242d7
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||
public static final String PLAYERS = "PLAYERS";
|
||||
public static final String NUM_PLAYERS = "NUM_PLAYERS";
|
||||
public static final String GAME_OVER = "GAME_OVER";
|
||||
public static final String IN_USE = "IN_USE";
|
||||
public static final String SCORES = "SCORES";
|
||||
public static final String CHAT_HISTORY = "CHAT_HISTORY";
|
||||
// GAMEID: this isn't used yet but we'll want it to look up games
|
||||
|
@ -77,6 +78,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||
+ NUM_PLAYERS + " INTEGER,"
|
||||
+ PLAYERS + " TEXT,"
|
||||
+ GAME_OVER + " INTEGER,"
|
||||
+ IN_USE + " INTEGER," // really a boolean
|
||||
|
||||
+ SERVERROLE + " INTEGER,"
|
||||
+ CONTYPE + " INTEGER,"
|
||||
|
@ -129,6 +131,8 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||
" ADD COLUMN " + GIFLAGS + " INTEGER;" );
|
||||
db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM +
|
||||
" ADD COLUMN " + CHAT_HISTORY + " TEXT;" );
|
||||
db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM +
|
||||
" ADD COLUMN " + IN_USE + " INTEGER;" );
|
||||
} else {
|
||||
db.execSQL( "DROP TABLE " + TABLE_NAME_SUM + ";" );
|
||||
if ( oldVersion >= 6 ) {
|
||||
|
|
Loading…
Reference in a new issue