mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +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 PLAYERS = "PLAYERS";
|
||||||
public static final String NUM_PLAYERS = "NUM_PLAYERS";
|
public static final String NUM_PLAYERS = "NUM_PLAYERS";
|
||||||
public static final String GAME_OVER = "GAME_OVER";
|
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 SCORES = "SCORES";
|
||||||
public static final String CHAT_HISTORY = "CHAT_HISTORY";
|
public static final String CHAT_HISTORY = "CHAT_HISTORY";
|
||||||
// GAMEID: this isn't used yet but we'll want it to look up games
|
// 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,"
|
+ NUM_PLAYERS + " INTEGER,"
|
||||||
+ PLAYERS + " TEXT,"
|
+ PLAYERS + " TEXT,"
|
||||||
+ GAME_OVER + " INTEGER,"
|
+ GAME_OVER + " INTEGER,"
|
||||||
|
+ IN_USE + " INTEGER," // really a boolean
|
||||||
|
|
||||||
+ SERVERROLE + " INTEGER,"
|
+ SERVERROLE + " INTEGER,"
|
||||||
+ CONTYPE + " INTEGER,"
|
+ CONTYPE + " INTEGER,"
|
||||||
|
@ -129,6 +131,8 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||||
" ADD COLUMN " + GIFLAGS + " INTEGER;" );
|
" ADD COLUMN " + GIFLAGS + " INTEGER;" );
|
||||||
db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM +
|
db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM +
|
||||||
" ADD COLUMN " + CHAT_HISTORY + " TEXT;" );
|
" ADD COLUMN " + CHAT_HISTORY + " TEXT;" );
|
||||||
|
db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM +
|
||||||
|
" ADD COLUMN " + IN_USE + " INTEGER;" );
|
||||||
} else {
|
} else {
|
||||||
db.execSQL( "DROP TABLE " + TABLE_NAME_SUM + ";" );
|
db.execSQL( "DROP TABLE " + TABLE_NAME_SUM + ";" );
|
||||||
if ( oldVersion >= 6 ) {
|
if ( oldVersion >= 6 ) {
|
||||||
|
|
Loading…
Reference in a new issue