mirror of
https://github.com/home-assistant/android
synced 2024-09-18 23:52:51 +00:00
Fix migration for Notifications. (#1056)
This commit is contained in:
parent
e0f2eab639
commit
40c8596150
|
@ -273,7 +273,7 @@ abstract class AppDatabase : RoomDatabase() {
|
||||||
|
|
||||||
private val MIGRATION_12_13 = object : Migration(12, 13) {
|
private val MIGRATION_12_13 = object : Migration(12, 13) {
|
||||||
override fun migrate(database: SupportSQLiteDatabase) {
|
override fun migrate(database: SupportSQLiteDatabase) {
|
||||||
database.execSQL("CREATE TABLE IF NOT EXISTS `notification_history` (`id` INTEGER NOT NULL, `received` LONG NOT NULL, `message` TEXT NOT NULL, `data` TEXT NOT NULL, PRIMARY KEY(`id`))")
|
database.execSQL("CREATE TABLE IF NOT EXISTS `notification_history` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `received` INTEGER NOT NULL, `message` TEXT NOT NULL, `data` TEXT NOT NULL)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue