From bfc82242d798bc7e5eb2b3fab59757f2b7dae505 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 28 Feb 2011 06:45:52 -0800 Subject: [PATCH] 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.... --- .../android/XWords4/src/org/eehouse/android/xw4/DBHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java index 8899e5c1a..cf13a2b0e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java @@ -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 ) {