Merge "Add column uid to database"
This commit is contained in:
committed by
Android (Google) Code Review
commit
94e256743a
@@ -34,7 +34,7 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
|
|||||||
private static final String TAG = "BatteryDatabaseHelper";
|
private static final String TAG = "BatteryDatabaseHelper";
|
||||||
|
|
||||||
private static final String DATABASE_NAME = "battery_settings.db";
|
private static final String DATABASE_NAME = "battery_settings.db";
|
||||||
private static final int DATABASE_VERSION = 2;
|
private static final int DATABASE_VERSION = 3;
|
||||||
|
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@IntDef({State.NEW,
|
@IntDef({State.NEW,
|
||||||
@@ -55,6 +55,10 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
|
|||||||
* The package name of the anomaly app
|
* The package name of the anomaly app
|
||||||
*/
|
*/
|
||||||
String PACKAGE_NAME = "package_name";
|
String PACKAGE_NAME = "package_name";
|
||||||
|
/**
|
||||||
|
* The uid of the anomaly app
|
||||||
|
*/
|
||||||
|
String UID = "uid";
|
||||||
/**
|
/**
|
||||||
* The type of the anomaly app
|
* The type of the anomaly app
|
||||||
* @see Anomaly.AnomalyType
|
* @see Anomaly.AnomalyType
|
||||||
@@ -74,6 +78,8 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
|
|||||||
private static final String CREATE_ANOMALY_TABLE =
|
private static final String CREATE_ANOMALY_TABLE =
|
||||||
"CREATE TABLE " + Tables.TABLE_ANOMALY +
|
"CREATE TABLE " + Tables.TABLE_ANOMALY +
|
||||||
"(" +
|
"(" +
|
||||||
|
AnomalyColumns.UID +
|
||||||
|
" INTEGER, " +
|
||||||
AnomalyColumns.PACKAGE_NAME +
|
AnomalyColumns.PACKAGE_NAME +
|
||||||
" TEXT, " +
|
" TEXT, " +
|
||||||
AnomalyColumns.ANOMALY_TYPE +
|
AnomalyColumns.ANOMALY_TYPE +
|
||||||
|
Reference in New Issue
Block a user