From d55c3fa68e12cf94b6cefa09d5ca67cd6a8da85b Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 20 Jun 2022 19:53:59 +0200 Subject: [PATCH] Log db migrations Signed-off-by: Andy Scherzinger --- .../java/com/nextcloud/talk/data/source/local/Migrations.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/data/source/local/Migrations.kt b/app/src/main/java/com/nextcloud/talk/data/source/local/Migrations.kt index 1cbc9d026..4d675f0f5 100644 --- a/app/src/main/java/com/nextcloud/talk/data/source/local/Migrations.kt +++ b/app/src/main/java/com/nextcloud/talk/data/source/local/Migrations.kt @@ -20,6 +20,7 @@ package com.nextcloud.talk.data.source.local +import android.util.Log import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase @@ -27,12 +28,14 @@ import androidx.sqlite.db.SupportSQLiteDatabase object Migrations { val MIGRATION_6_8 = object : Migration(6, 8) { override fun migrate(database: SupportSQLiteDatabase) { + Log.i("Migrations", "Migrating 6 to 8") migrateToRoom(database) } } val MIGRATION_7_8 = object : Migration(7, 8) { override fun migrate(database: SupportSQLiteDatabase) { + Log.i("Migrations", "Migrating 7 to 8") migrateToRoom(database) } }