Fix EOF error in messages (#1145)

This commit is contained in:
Rafał Borcz 2021-02-13 20:39:52 +01:00 committed by GitHub
parent 5e3b89636f
commit 000cbd11a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2159 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -85,6 +85,7 @@ import io.github.wulkanowy.data.db.migrations.Migration30
import io.github.wulkanowy.data.db.migrations.Migration31
import io.github.wulkanowy.data.db.migrations.Migration32
import io.github.wulkanowy.data.db.migrations.Migration33
import io.github.wulkanowy.data.db.migrations.Migration34
import io.github.wulkanowy.data.db.migrations.Migration4
import io.github.wulkanowy.data.db.migrations.Migration5
import io.github.wulkanowy.data.db.migrations.Migration6
@ -130,7 +131,7 @@ import javax.inject.Singleton
abstract class AppDatabase : RoomDatabase() {
companion object {
const val VERSION_SCHEMA = 33
const val VERSION_SCHEMA = 34
fun getMigrations(sharedPrefProvider: SharedPrefProvider): Array<Migration> {
return arrayOf(
@ -165,7 +166,8 @@ abstract class AppDatabase : RoomDatabase() {
Migration30(),
Migration31(),
Migration32(),
Migration33()
Migration33(),
Migration34()
)
}

View File

@ -0,0 +1,13 @@
package io.github.wulkanowy.data.db.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
class Migration34 : Migration(33, 34) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("DELETE FROM ReportingUnits")
database.execSQL("DELETE FROM Recipients")
}
}