Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94e25674 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add column uid to database"

parents e4d7c0d2 fec88460
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
    private static final String TAG = "BatteryDatabaseHelper";

    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)
    @IntDef({State.NEW,
@@ -55,6 +55,10 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
         * The package name of the anomaly app
         */
        String PACKAGE_NAME = "package_name";
        /**
         * The uid of the anomaly app
         */
        String UID = "uid";
        /**
         * The type of the anomaly app
         * @see Anomaly.AnomalyType
@@ -74,6 +78,8 @@ public class AnomalyDatabaseHelper extends SQLiteOpenHelper {
    private static final String CREATE_ANOMALY_TABLE =
            "CREATE TABLE " + Tables.TABLE_ANOMALY +
                    "(" +
                    AnomalyColumns.UID +
                    " INTEGER, " +
                    AnomalyColumns.PACKAGE_NAME +
                    " TEXT, " +
                    AnomalyColumns.ANOMALY_TYPE +