Commit e164e4a6 by Kim Jinsung

1.2.360リリース問題対応(プッシュメッセージテーブルにカラム追加)

parent c5801581
...@@ -19,7 +19,7 @@ import jp.agentec.abook.abv.bl.common.db.SQLiteDatabase; ...@@ -19,7 +19,7 @@ import jp.agentec.abook.abv.bl.common.db.SQLiteDatabase;
public class DBConnector { public class DBConnector {
private static volatile DBConnector dbConnector = null; private static volatile DBConnector dbConnector = null;
public static final String DatabaseName = "ABVJE"; public static final String DatabaseName = "ABVJE";
public static final int DatabaseVersion = DatabaseVersions.Ver1_2_360; public static final int DatabaseVersion = DatabaseVersions.Ver1_2_362;
protected SQLiteDatabase db = null; protected SQLiteDatabase db = null;
......
...@@ -8,5 +8,8 @@ public class DatabaseVersions { ...@@ -8,5 +8,8 @@ public class DatabaseVersions {
public static final int Ver1_2_3 = 22; public static final int Ver1_2_3 = 22;
//連続作業機能追加 //連続作業機能追加
public static final int Ver1_2_360 = 23; public static final int Ver1_2_360 = 23;
//チャット機能追加(1.2.360障害対応。)
public static final int Ver1_2_362 = 24;
} }
...@@ -40,7 +40,12 @@ public class TPushMessage extends SQLiteTableScript { ...@@ -40,7 +40,12 @@ public class TPushMessage extends SQLiteTableScript {
@Override @Override
public List<String> getUpgradeScript(int oldVersion, int newVersion) { public List<String> getUpgradeScript(int oldVersion, int newVersion) {
return null; List<String> ddl = new ArrayList<String>();
if (oldVersion < DatabaseVersions.Ver1_2_362) {
ddl.add("ALTER TABLE t_push_message ADD COLUMN room_id BIGINT ");
ddl.add("ALTER TABLE t_push_message ADD COLUMN room_name VARCHAR(128) ");
}
return ddl;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment