浏览代码

Log db migrations

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父节点
当前提交
d55c3fa68e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/src/main/java/com/nextcloud/talk/data/source/local/Migrations.kt

+ 3 - 0
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)
         }
     }