* VRFS-1135 make plays and recordings and sessions unique for user/model combo
This commit is contained in:
parent
4808514032
commit
3ca1744c27
|
|
@ -2,3 +2,7 @@ ALTER TABLE recordings ADD COLUMN play_count INTEGER NOT NULL DEFAU
|
|||
ALTER TABLE music_sessions_history ADD COLUMN play_count INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE recordings ADD COLUMN like_count INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE music_sessions_history ADD COLUMN like_count INTEGER NOT NULL DEFAULT 0;
|
||||
|
||||
CREATE INDEX music_sessions_plays_uniqkey ON music_sessions_plays (player_id, music_session_id);
|
||||
CREATE INDEX recordings_plays_uniqkey ON recordings_plays (player_id, recording_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue