From ac779f9ac89e24159f07cde4fd4ad49b912a47ba Mon Sep 17 00:00:00 2001 From: Oliver S Date: Mon, 10 Jan 2022 16:05:01 +0100 Subject: [PATCH] Fix off by one error --- .../gms/nearby/exposurenotification/ExposureDatabase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt index a20b8bd6..a4323a2a 100644 --- a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt +++ b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt @@ -89,8 +89,8 @@ class ExposureDatabase private constructor(private val context: Context) : SQLit Log.d(TAG, "Altering tables for version >= 7") db.execSQL("ALTER TABLE $TABLE_TOKENS ADD COLUMN diagnosisKeysDataMap BLOB;") } - if (oldVersion in 5 until 10) { - Log.d(TAG, "Altering tables for version >= 10") + if (oldVersion in 5 until 11) { + Log.d(TAG, "Altering tables for version >= 11") db.execSQL("ALTER TABLE $TABLE_TEK_CHECK_SINGLE_TOKEN ADD COLUMN reportType INTEGER NOT NULL;") db.execSQL("ALTER TABLE $TABLE_TEK_CHECK_SINGLE_TOKEN ADD COLUMN daysSinceOnsetOfSymptoms INTEGER NOT NULL;") db.execSQL("ALTER TABLE $TABLE_TEK_CHECK_FILE_MATCH ADD COLUMN reportType INTEGER NOT NULL;")