Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7542c02
commit f4722a8
Showing
3 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\set ON_ERROR_STOP 1 | ||
BEGIN; | ||
|
||
------------------------ | ||
-- ADD ENDED TRIGGERS -- | ||
------------------------ | ||
|
||
CREATE TRIGGER end_date_implies_ended BEFORE UPDATE OR INSERT ON area_alias | ||
FOR EACH ROW EXECUTE PROCEDURE end_date_implies_ended(); | ||
|
||
CREATE TRIGGER end_date_implies_ended BEFORE UPDATE OR INSERT ON artist_alias | ||
FOR EACH ROW EXECUTE PROCEDURE end_date_implies_ended(); | ||
|
||
CREATE TRIGGER end_date_implies_ended BEFORE UPDATE OR INSERT ON label_alias | ||
FOR EACH ROW EXECUTE PROCEDURE end_date_implies_ended(); | ||
|
||
CREATE TRIGGER end_date_implies_ended BEFORE UPDATE OR INSERT ON work_alias | ||
FOR EACH ROW EXECUTE PROCEDURE end_date_implies_ended(); | ||
|
||
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