Ver código fonte

Log db migrations

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 anos atrás
pai
commit
d55c3fa68e

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