[DB] Add migration 93.

This commit is contained in:
Kuba Szczodrzyński 2021-05-26 19:00:24 +02:00
parent 85d74bec1c
commit 26645ee83c
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB
2 changed files with 18 additions and 2 deletions

View File

@ -43,7 +43,7 @@ import pl.szczodrzynski.edziennik.data.db.migration.*
LibrusLesson::class,
TimetableManual::class,
Metadata::class
], version = 92)
], version = 93)
@TypeConverters(
ConverterTime::class,
ConverterDate::class,
@ -177,7 +177,8 @@ abstract class AppDb : RoomDatabase() {
Migration89(),
Migration90(),
Migration91(),
Migration92()
Migration92(),
Migration93()
).allowMainThreadQueries().build()
}
}

View File

@ -0,0 +1,15 @@
/*
* Copyright (c) Kuba Szczodrzyński 2021-5-26.
*/
package pl.szczodrzynski.edziennik.data.db.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
class Migration93 : Migration(92, 93) {
override fun migrate(database: SupportSQLiteDatabase) {
// notifications - long text
database.execSQL("ALTER TABLE notifications ADD COLUMN textLong TEXT DEFAULT NULL;")
}
}