Skip to content

Commit 0a13d55

Browse files
committed
update sql queries
1 parent 5d2b8b7 commit 0a13d55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/sql/12_gitlab_webhook.up.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717
ALTER TABLE git_host_webhook_event ADD COLUMN IF NOT EXISTS git_host_name varchar(250);
1818
ALTER TABLE git_host_webhook_event ALTER COLUMN git_host_id DROP NOT NULL;
1919

20+
update git_host_webhook_event set git_host_name='Github' where git_host_id=1;
21+
update git_host_webhook_event set git_host_name='Bitbucket Cloud' where git_host_id=2;
22+
2023
INSERT INTO git_host_webhook_event (git_host_name, name, event_types_csv,
2124
action_type, is_active, created_on)
2225
VALUES ('Gitlab_Devtron', 'Pull Request', 'Merge Request Hook', 'non-merged','t', NOW()),
2326
('Gitlab_Devtron', 'Tag Creation', 'Tag Push Hook', 'merged','t', NOW());
2427

28+
29+
2530
-- pr queries
2631
INSERT INTO git_host_webhook_event_selectors
2732
(event_id, name, selector, to_show, to_show_in_ci_filter, is_active, possible_values, created_on)

0 commit comments

Comments
 (0)