Skip to content

Commit d9cd8bf

Browse files
authored
fix:migration script issue (#3750)
* devtronContainerImageRepo varilable added * sql file issue fixed * sql file issue fixed 1.0
1 parent 3241b0f commit d9cd8bf

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ALTER TABLE ONLY public.notifier_event_log DROP CONSTRAINT notifier_event_log_event_type_id_fkey;
2-
ALTER TABLE ONLY public.notifier_event_log
3-
ADD CONSTRAINT notifier_event_log_event_type_id_fkey FOREIGN KEY (event_type_id) REFERENCES public.event(id) ON DELETE CASCADE;
41
delete from "public"."notification_templates" where event_type_id=4;
2+
delete from notifier_event_log where event_type_id=4;
53
delete from public.event where event_type='APPROVAL';

scripts/sql/162_notification_template_for_approval.up.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
ALTER TABLE ONLY public.notifier_event_log DROP CONSTRAINT notifier_event_log_event_type_id_fkey;
2-
ALTER TABLE ONLY public.notifier_event_log
3-
ADD CONSTRAINT notifier_event_log_event_type_id_fkey FOREIGN KEY (event_type_id) REFERENCES public.event(id) ;
41
INSERT INTO public.event (id, event_type, description) VALUES (4, 'APPROVAL', '');
52
INSERT INTO "public"."notification_templates" (channel_type, node_type, event_type_id, template_name, template_payload)
63
VALUES ('smtp', 'CD', 4, 'CD approval smtp template', '{"from": "{{fromEmail}}",

0 commit comments

Comments
 (0)