forked from github/szkolny
[DB] Add migration 93.
This commit is contained in:
parent
85d74bec1c
commit
26645ee83c
@ -43,7 +43,7 @@ import pl.szczodrzynski.edziennik.data.db.migration.*
|
|||||||
LibrusLesson::class,
|
LibrusLesson::class,
|
||||||
TimetableManual::class,
|
TimetableManual::class,
|
||||||
Metadata::class
|
Metadata::class
|
||||||
], version = 92)
|
], version = 93)
|
||||||
@TypeConverters(
|
@TypeConverters(
|
||||||
ConverterTime::class,
|
ConverterTime::class,
|
||||||
ConverterDate::class,
|
ConverterDate::class,
|
||||||
@ -177,7 +177,8 @@ abstract class AppDb : RoomDatabase() {
|
|||||||
Migration89(),
|
Migration89(),
|
||||||
Migration90(),
|
Migration90(),
|
||||||
Migration91(),
|
Migration91(),
|
||||||
Migration92()
|
Migration92(),
|
||||||
|
Migration93()
|
||||||
).allowMainThreadQueries().build()
|
).allowMainThreadQueries().build()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user