Skip to content
Merged
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ALTER TABLE ONLY public.notifier_event_log DROP CONSTRAINT notifier_event_log_event_type_id_fkey;
ALTER TABLE ONLY public.notifier_event_log
ADD CONSTRAINT notifier_event_log_event_type_id_fkey FOREIGN KEY (event_type_id) REFERENCES public.event(id) ON DELETE CASCADE;
delete from "public"."notification_templates" where event_type_id=4;
delete from notifier_event_log where event_type_id=4;
delete from public.event where event_type='APPROVAL';
3 changes: 0 additions & 3 deletions scripts/sql/162_notification_template_for_approval.up.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
ALTER TABLE ONLY public.notifier_event_log DROP CONSTRAINT notifier_event_log_event_type_id_fkey;
ALTER TABLE ONLY public.notifier_event_log
ADD CONSTRAINT notifier_event_log_event_type_id_fkey FOREIGN KEY (event_type_id) REFERENCES public.event(id) ;
INSERT INTO public.event (id, event_type, description) VALUES (4, 'APPROVAL', '');
INSERT INTO "public"."notification_templates" (channel_type, node_type, event_type_id, template_name, template_payload)
VALUES ('smtp', 'CD', 4, 'CD approval smtp template', '{"from": "{{fromEmail}}",
Expand Down