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.
This commit is contained in:
zarzet committed 2026-11-21 23:07:20 +07:00
1 parent 866445926e
commit bd01be76ef
1 file changed
+2 -1
+2 -1
View File
@@ -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');