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 ) {