整理已安装的游戏数据表
This commit is contained in:
@ -6,7 +6,7 @@ import android.support.v4.util.ArrayMap;
|
||||
|
||||
import com.gh.gamecenter.db.info.AppRunTimeInfo;
|
||||
import com.gh.gamecenter.db.info.AppTrafficInfo;
|
||||
import com.gh.gamecenter.db.info.ConcernInfo;
|
||||
import com.gh.gamecenter.db.info.InstallInfo;
|
||||
import com.gh.gamecenter.db.info.DataCollectionInfo;
|
||||
import com.gh.gamecenter.db.info.FilterInfo;
|
||||
import com.gh.gamecenter.db.info.GameInfo;
|
||||
@ -54,7 +54,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||
public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {
|
||||
try {
|
||||
Utils.log("DatabaseHelper onCreate");
|
||||
TableUtils.createTable(connectionSource, ConcernInfo.class);
|
||||
TableUtils.createTable(connectionSource, InstallInfo.class);
|
||||
TableUtils.createTable(connectionSource, SearchHistoryInfo.class);
|
||||
TableUtils.createTable(connectionSource, GameInfo.class);
|
||||
TableUtils.createTable(connectionSource, DataCollectionInfo.class);
|
||||
@ -70,7 +70,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||
public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {
|
||||
try {
|
||||
Utils.log("DatabaseHelper onUpgrade");
|
||||
TableUtils.dropTable(connectionSource, ConcernInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, InstallInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, SearchHistoryInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, GameInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, FilterInfo.class, true);
|
||||
|
||||
Reference in New Issue
Block a user