1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.healthfitness.flags; 18 19 /** 20 * Class containing all DB versions of HC database. 21 * 22 * @hide 23 */ 24 public final class DatabaseVersions { 25 public static final int DB_VERSION_UUID_BLOB = 9; 26 public static final int DB_VERSION_GENERATED_LOCAL_TIME = 10; 27 public static final int DB_VERSION_SKIN_TEMPERATURE = 11; 28 public static final int DB_VERSION_PLANNED_EXERCISE_SESSIONS = 12; 29 // No schema changes between version 12 and 13. See ag/26747988 for more details. 30 public static final int DB_VERSION_PLANNED_EXERCISE_SESSIONS_FLAG_RELEASE = 13; 31 public static final int DB_VERSION_MINDFULNESS_SESSION = 14; 32 33 /** The DB version in which the schema changes for PHR MVP were added. */ 34 public static final int DB_VERSION_PERSONAL_HEALTH_RECORD = 15; 35 36 public static final int DB_VERSION_ACTIVITY_INTENSITY = 16; 37 public static final int DB_VERSION_ECOSYSTEM_METRICS = 17; 38 public static final int DB_VERSION_CLOUD_BACKUP_AND_RESTORE = 18; 39 40 // For historical reasons, we do not support versions below this 41 // See go/hc-mainline-dev/trunk_stable/db-and-aconfig#a-bit-of-history 42 public static final int MIN_SUPPORTED_DB_VERSION = DB_VERSION_UUID_BLOB; 43 44 // DB version of the last feature that has been fully rolled out to public. 45 // See go/hc-mainline-dev/trunk_stable/db-and-aconfig#last-rolled-out-db-version 46 public static final int LAST_ROLLED_OUT_DB_VERSION = DB_VERSION_MINDFULNESS_SESSION; 47 DatabaseVersions()48 private DatabaseVersions() {} 49 } 50