-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PAY-2565] playlists_previously_containing_track column in tracks tab…
…le (#7853)
- Loading branch information
1 parent
3e8ebc9
commit e751480
Showing
4 changed files
with
271 additions
and
26 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
packages/discovery-provider/ddl/migrations/0064_playlists_previously_containing_track.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
BEGIN; | ||
|
||
-- disable triggers | ||
ALTER TABLE tracks DISABLE trigger on_track; | ||
ALTER TABLE tracks DISABLE trigger trg_tracks; | ||
|
||
ALTER TABLE tracks | ||
ADD COLUMN IF NOT EXISTS playlists_previously_containing_track JSONB NOT NULL DEFAULT jsonb_build_object(); | ||
|
||
-- enable triggers | ||
ALTER TABLE tracks ENABLE trigger on_track; | ||
ALTER TABLE tracks ENABLE trigger trg_tracks; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters