From 6cc1a2d672598609c34aad05f658da09ac465047 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Tue, 20 Dec 2011 17:12:23 -0800 Subject: [PATCH] Add new column and up db version number. --- .../XWords4/src/org/eehouse/android/xw4/DBHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 f3ded5232..69934a3f9 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java @@ -29,7 +29,7 @@ public class DBHelper extends SQLiteOpenHelper { public static final String TABLE_NAME_SUM = "summaries"; public static final String TABLE_NAME_OBITS = "obits"; private static final String DB_NAME = "xwdb"; - private static final int DB_VERSION = 10; + private static final int DB_VERSION = 11; public static final String GAME_NAME = "GAME_NAME"; public static final String NUM_MOVES = "NUM_MOVES"; @@ -55,6 +55,7 @@ public class DBHelper extends SQLiteOpenHelper { public static final String CONTYPE = "CONTYPE"; public static final String SERVERROLE = "SERVERROLE"; public static final String ROOMNAME = "ROOMNAME"; + public static final String INVITEID = "INVITEID"; public static final String RELAYID = "RELAYID"; public static final String SEED = "SEED"; public static final String SMSPHONE = "SMSPHONE"; @@ -85,6 +86,7 @@ public class DBHelper extends SQLiteOpenHelper { + SERVERROLE + " INTEGER," + CONTYPE + " INTEGER," + ROOMNAME + " TEXT," + + INVITEID + " TEXT," + RELAYID + " TEXT," + SEED + " INTEGER," + DICTLANG + " INTEGER," @@ -147,6 +149,9 @@ public class DBHelper extends SQLiteOpenHelper { db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM + " ADD COLUMN " + DICTLIST + " TEXT;" ); case 10: + db.execSQL( "ALTER TABLE " + TABLE_NAME_SUM + + " ADD COLUMN " + INVITEID + " TEXT;" ); + case 11: // nothing yet break; default: