[Database] Remove unnecessary migration.

This commit is contained in:
Kacper Ziubryniewicz 2020-02-04 20:59:13 +01:00
parent 78c5b6b2a5
commit b52e7a3078
2 changed files with 2 additions and 19 deletions

View File

@ -42,7 +42,7 @@ import pl.szczodrzynski.edziennik.data.db.migration.*
ConfigEntry::class, ConfigEntry::class,
LibrusLesson::class, LibrusLesson::class,
Metadata::class Metadata::class
], version = 77) ], version = 76)
@TypeConverters( @TypeConverters(
ConverterTime::class, ConverterTime::class,
ConverterDate::class, ConverterDate::class,
@ -159,8 +159,7 @@ abstract class AppDb : RoomDatabase() {
Migration73(), Migration73(),
Migration74(), Migration74(),
Migration75(), Migration75(),
Migration76(), Migration76()
Migration77()
).allowMainThreadQueries().build() ).allowMainThreadQueries().build()
} }
} }

View File

@ -1,16 +0,0 @@
package pl.szczodrzynski.edziennik.data.db.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
class Migration77 : Migration(76, 77) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("DROP TABLE lessonRanges")
database.execSQL("""CREATE TABLE IF NOT EXISTS lessonRanges (
profileId INTEGER NOT NULL,
lessonRangeNumber INTEGER NOT NULL,
lessonRangeStart TEXT NOT NULL,
lessonRangeEnd TEXT NOT NULL,
PRIMARY KEY(profileId, lessonRangeNumber))""")
}
}