1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-11-07 02:33:00 +00:00

Migrate database

This commit is contained in:
GGAutomaton
2022-04-13 19:41:07 +08:00
parent 629b685f5a
commit 96d6b309ec
6 changed files with 800 additions and 4 deletions

View File

@@ -84,6 +84,11 @@ class DatabaseMigrationTest {
true, Migrations.MIGRATION_4_5
)
testHelper.runMigrationsAndValidate(
AppDatabase.DATABASE_NAME, Migrations.DB_VER_6,
true, Migrations.MIGRATION_5_6
)
val migratedDatabaseV3 = getMigratedDatabase()
val listFromDB = migratedDatabaseV3.streamDAO().all.blockingFirst()