fix: 移除无用的数据库相关代码 https://jira.shanqu.cc/browse/GHZS-916

This commit is contained in:
叶子维
2023-01-04 14:25:33 +08:00
parent 47fef0065d
commit 9101ed4d47
5 changed files with 0 additions and 338 deletions

View File

@ -5,9 +5,7 @@ import android.database.sqlite.SQLiteDatabase;
import androidx.collection.ArrayMap;
import com.gh.gamecenter.db.info.AskSearchHistoryInfo;
import com.gh.gamecenter.db.info.DataCollectionInfo;
import com.gh.gamecenter.db.info.FilterInfo;
import com.gh.gamecenter.db.info.GameTrendsInfo;
import com.gh.gamecenter.db.info.PackageInfo;
import com.gh.gamecenter.db.info.SearchHistoryInfo;
@ -57,7 +55,6 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
TableUtils.createTable(connectionSource, DataCollectionInfo.class);
TableUtils.createTable(connectionSource, PackageInfo.class);
TableUtils.createTable(connectionSource, GameTrendsInfo.class);
TableUtils.createTable(connectionSource, AskSearchHistoryInfo.class);
} catch (SQLException e) {
e.printStackTrace();
}
@ -68,11 +65,9 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
try {
Utils.log("DatabaseHelper onUpgrade");
TableUtils.dropTable(connectionSource, SearchHistoryInfo.class, true);
TableUtils.dropTable(connectionSource, FilterInfo.class, true);
TableUtils.dropTable(connectionSource, DataCollectionInfo.class, true);
TableUtils.dropTable(connectionSource, PackageInfo.class, true);
TableUtils.dropTable(connectionSource, GameTrendsInfo.class, true);
TableUtils.dropTable(connectionSource, AskSearchHistoryInfo.class, true);
onCreate(database, connectionSource);
} catch (SQLException e) {
e.printStackTrace();