mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[Database] Remove unnecessary migration.
This commit is contained in:
parent
78c5b6b2a5
commit
b52e7a3078
@ -42,7 +42,7 @@ import pl.szczodrzynski.edziennik.data.db.migration.*
|
||||
ConfigEntry::class,
|
||||
LibrusLesson::class,
|
||||
Metadata::class
|
||||
], version = 77)
|
||||
], version = 76)
|
||||
@TypeConverters(
|
||||
ConverterTime::class,
|
||||
ConverterDate::class,
|
||||
@ -159,8 +159,7 @@ abstract class AppDb : RoomDatabase() {
|
||||
Migration73(),
|
||||
Migration74(),
|
||||
Migration75(),
|
||||
Migration76(),
|
||||
Migration77()
|
||||
Migration76()
|
||||
).allowMainThreadQueries().build()
|
||||
}
|
||||
}
|
||||
|
@ -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))""")
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user