mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-14 00:11:40 +00:00
Fix tests
This commit is contained in:
parent
6763ccb6d5
commit
3d5569c46b
4 changed files with 73 additions and 67 deletions
|
|
@ -132,7 +132,9 @@ abstract class AppDatabase : RoomDatabase() {
|
|||
db.execSQL("ALTER TABLE " + Favorite.TABLE_NAME + "_backup RENAME TO " + Favorite.TABLE_NAME)
|
||||
}
|
||||
}
|
||||
private val MIGRATION_4_5: Migration = object : Migration(4, 5) {
|
||||
|
||||
@JvmField
|
||||
val MIGRATION_4_5: Migration = object : Migration(4, 5) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL("CREATE TABLE IF NOT EXISTS `dm_last_notified` (" +
|
||||
"`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " +
|
||||
|
|
@ -142,7 +144,9 @@ abstract class AppDatabase : RoomDatabase() {
|
|||
database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_dm_last_notified_thread_id` ON `dm_last_notified` (`thread_id`)")
|
||||
}
|
||||
}
|
||||
private val MIGRATION_5_6: Migration = object : Migration(5, 6) {
|
||||
|
||||
@JvmField
|
||||
val MIGRATION_5_6: Migration = object : Migration(5, 6) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
database.execSQL("CREATE TABLE IF NOT EXISTS `recent_searches` (" +
|
||||
"`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue