mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-30 21:27:53 +01:00
4e59f1dc12
Added support for three new metadata elements of a track: Album Artist, Composer and Disc Number. Since these are not supported in ID3v1 which TagLib uses as common ground between the different metadata formats, I had to handle the following cases separately: APE, ASF, ID3v1, ID3v2, MP4 and OGG. Modified the DB schema to include composer and discnumber. Provided the dbmigrate file and bumped the schema version. Added composer and discnumber data to all relevant queries. Removed a bogus result->setYear from some queries in dbcmd_resolve.cpp.
8 lines
347 B
SQL
8 lines
347 B
SQL
-- Script to migate from db version 27 to 28.
|
|
-- Added albumartist and discnumber to file_join
|
|
|
|
ALTER TABLE file_join ADD COLUMN composer INTEGER REFERENCES artist(id) ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED;
|
|
ALTER TABLE file_join ADD COLUMN discnumber INTEGER;
|
|
|
|
UPDATE settings SET v = '28' WHERE k == 'schema_version';
|