增加流量统计(尚未完善)
This commit is contained in:
@ -4,6 +4,7 @@ import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.support.v4.util.ArrayMap;
|
||||
|
||||
import com.gh.gamecenter.db.info.AppTrafficInfo;
|
||||
import com.lightgame.utils.Utils;
|
||||
import com.gh.gamecenter.db.info.AppRunTimeInfo;
|
||||
import com.gh.gamecenter.db.info.CommentInfo;
|
||||
@ -29,7 +30,7 @@ import java.sql.SQLException;
|
||||
public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||
|
||||
private static final String DATABASE_NAME = "gh_assist.db";
|
||||
private static final int DATABASE_VERSION = 6;
|
||||
private static final int DATABASE_VERSION = 7;
|
||||
|
||||
private static DatabaseHelper instance;
|
||||
private ArrayMap<String, Dao> daos = new ArrayMap<>();
|
||||
@ -73,6 +74,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||
TableUtils.createTable(connectionSource, KeFuMarkReadInfo.class);
|
||||
TableUtils.createTable(connectionSource, NoticeMarkReadInfo.class);
|
||||
TableUtils.createTable(connectionSource, VersionVoteInfo.class);
|
||||
TableUtils.createTable(connectionSource, AppTrafficInfo.class);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -96,6 +98,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||
TableUtils.dropTable(connectionSource, KeFuMarkReadInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, NoticeMarkReadInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, VersionVoteInfo.class, true);
|
||||
TableUtils.dropTable(connectionSource, AppTrafficInfo.class, true);
|
||||
onCreate(database, connectionSource);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user