Convert cuetracks to join table #2
Labels
No labels
bug
component
database
confirmed
critical
discussion
documentation
enhancement
status
accepted
status
doing
status
doing
status
on-hold
status
on-hold
status
open
suggestion
support
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
touhou.fm-rust/touhou.fm-radio-rust#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the foreign key references describe the following structure:
However, this means that tracks which are present on multiple albums or discs will be duplicated. This is not ideal since tracks get often included multiple times (e.g. with collection albums).
A proposed solution is to, instead, let the cuetrack link albums, tracks and discs together. In addition to this, cuefiles should encode the disc number (since it actually describes a specific disc).
Upon completion
songsshould not have a foreigndisc_iddiscsshould be completely removedcuefilesshould get adiscnumbercuetracksshould get a foreignalbum_idMigration
discsdiscnumbershould be written to thecuefilesdiscnumbercolumnsongsdisc_idshould be transformed into analbum_idand written to the associatedcuetracks