mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 14:05:40 +03:00
Log db migrations
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
72207e78c1
commit
d55c3fa68e
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
package com.nextcloud.talk.data.source.local
|
package com.nextcloud.talk.data.source.local
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import androidx.room.migration.Migration
|
import androidx.room.migration.Migration
|
||||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||||
|
|
||||||
|
@ -27,12 +28,14 @@ import androidx.sqlite.db.SupportSQLiteDatabase
|
||||||
object Migrations {
|
object Migrations {
|
||||||
val MIGRATION_6_8 = object : Migration(6, 8) {
|
val MIGRATION_6_8 = object : Migration(6, 8) {
|
||||||
override fun migrate(database: SupportSQLiteDatabase) {
|
override fun migrate(database: SupportSQLiteDatabase) {
|
||||||
|
Log.i("Migrations", "Migrating 6 to 8")
|
||||||
migrateToRoom(database)
|
migrateToRoom(database)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val MIGRATION_7_8 = object : Migration(7, 8) {
|
val MIGRATION_7_8 = object : Migration(7, 8) {
|
||||||
override fun migrate(database: SupportSQLiteDatabase) {
|
override fun migrate(database: SupportSQLiteDatabase) {
|
||||||
|
Log.i("Migrations", "Migrating 7 to 8")
|
||||||
migrateToRoom(database)
|
migrateToRoom(database)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue