Skip to content

Commit

Permalink
add alias to track/release artist primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 26, 2023
1 parent 8a9269c commit 91697be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rose/cache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CREATE TABLE releases_artists (
artist_sanitized TEXT NOT NULL,
role TEXT REFERENCES artist_role_enum(value) NOT NULL,
alias BOOL NOT NULL,
PRIMARY KEY (release_id, artist, role)
PRIMARY KEY (release_id, artist, role, alias)
);
CREATE INDEX releases_artists_release_id ON releases_artists(release_id);
CREATE INDEX releases_artists_artist ON releases_artists(artist);
Expand All @@ -109,7 +109,7 @@ CREATE TABLE tracks_artists (
artist_sanitized TEXT NOT NULL,
role TEXT REFERENCES artist_role_enum(value) NOT NULL,
alias BOOL NOT NULL,
PRIMARY KEY (track_id, artist, role)
PRIMARY KEY (track_id, artist, role, alias)
);
CREATE INDEX tracks_artists_track_id ON tracks_artists(track_id);
CREATE INDEX tracks_artists_artist ON tracks_artists(artist);
Expand Down

0 comments on commit 91697be

Please sign in to comment.