Add quotes around migration table and column names

This commit is contained in:
Ensar Sarajčić 2023-09-01 10:27:35 +02:00
parent d69d25907b
commit 68a2833a5b

View file

@ -64,7 +64,7 @@ abstract class AppDatabase : RoomDatabase() {
private val MIGRATION_1_2 = object : Migration(1, 2) {
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("ALTER TABLE timers ADD COLUMN oneShot INTEGER NOT NULL DEFAULT 0")
db.execSQL("ALTER TABLE `timers` ADD COLUMN `oneShot` INTEGER NOT NULL DEFAULT 0")
}
}
}