From bd01be76ef5873c1c4a3b221cfbe34e5e27cc2f7 Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:07:20 +0700 Subject: [PATCH] test(library): give the v14 upgrade fixture the columns it indexes The rollback test builds a cut down version 14 Library table. The upgrade to version 21 creates the album key and album artist indexes again, and the fixture had neither column, so the retry failed with "no such column: album_key". A real version 14 database has both since version 7. --- test/sqlite_path_keys_migration_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sqlite_path_keys_migration_test.dart b/test/sqlite_path_keys_migration_test.dart index 79fbadcb1..d8b1bd747 100644 --- a/test/sqlite_path_keys_migration_test.dart +++ b/test/sqlite_path_keys_migration_test.dart @@ -194,7 +194,8 @@ void main() { id TEXT PRIMARY KEY, file_path TEXT, source_id TEXT NOT NULL DEFAULT 'legacy', isrc TEXT, format TEXT, audio_metadata_scan_version INTEGER NOT NULL DEFAULT 0, - match_key TEXT DEFAULT 'song|artist' + match_key TEXT DEFAULT 'song|artist', album_key TEXT, + album_artist_norm TEXT ) '''); await createPathKeyTable(db, 'library_path_keys');