Update migrations file as there was a conflict with previous
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
-- Type: DO
|
||||
-- Name: remove_constraints_from_content_display_reports
|
||||
-- Description: Remove constraints from CD reports as they should not be deleted
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.content_display_report DROP CONSTRAINT content_display_report_page_id_fkey;
|
||||
ALTER TABLE omnivore.content_display_report DROP CONSTRAINT content_display_report_user_id_fkey;
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,13 @@
|
||||
-- Type: UNDO
|
||||
-- Name: remove_constraints_from_content_display_reports
|
||||
-- Description: Remove constraints from CD reports as they should not be deleted
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.content_display_report
|
||||
ADD CONSTRAINT content_display_report_user_id_fkey FOREIGN KEY (user_id) REFERENCES omnivore."user"(id);
|
||||
|
||||
ALTER TABLE omnivore.content_display_report
|
||||
ADD CONSTRAINT content_display_report_page_id_fkey FOREIGN KEY (page_id) REFERENCES omnivore.pages(id);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user