You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DELETEFROM plugin_step_variable WHERE plugin_step_id =(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Code Scan'and ps."index"=1andps.deleted=false);
2
-
DELETEFROM plugin_step WHERE plugin_id = (SELECT id FROM plugin_metadata WHERE name='Code Scan');
3
-
DELETEFROM plugin_stage_mapping WHERE plugin_id =(SELECT id FROM plugin_metadata WHERE name='Code Scan');
4
-
DELETEFROM plugin_tag_relation WHERE plugin_id =(SELECT id FROM plugin_metadata WHERE name='Code Scan');
5
-
DELETEFROM pipeline_stage_step where ref_plugin_id in (SELECT id from plugin_metadata WHERE name ='Code Scan');
6
-
DELETEfrom plugin_pipeline_script where id = (SELECT script_id from plugin_step WHERE plugin_id=(SELECT id FROM plugin_metadata WHERE name='Code Scan'));
7
-
DELETEFROM plugin_metadata WHERE name ='Code Scan';
1
+
-- empty script to keep script number common across repo
VALUES (nextval('id_seq_plugin_tag_relation'),(SELECT id FROM plugin_tag WHERE name='DevSecOps') , (SELECT id FROM plugin_metadata WHERE name='Code Scan'),'now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_tag_relation'),(SELECT id FROM plugin_tag WHERE name='Security') , (SELECT id FROM plugin_metadata WHERE name='Code Scan'),'now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_step_variable'), (SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Code Scan'and ps."index"=1andps.deleted=false), 'IS_CODE_SCAN','BOOL','Flag to identify if this plugin used for code scan',false,true,'INPUT','NEW','true',1 ,'f','now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_step_variable'), (SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Code Scan'and ps."index"=1andps.deleted=false), 'IS_PRE_CI_STAGE','BOOL','Flag to identify at which stage this plugin is to be used',false,true,'INPUT','NEW','true',1 ,'f','now()', 1, 'now()', 1);
24
-
1
+
-- empty script to keep script number common across repo
DELETEFROM plugin_step_variable WHERE plugin_step_id =(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Image Scan'and ps."index"=1andps.deleted=false);
2
-
DELETEFROM plugin_step WHERE plugin_id = (SELECT id FROM plugin_metadata WHERE name='Image Scan');
3
-
DELETEFROM plugin_stage_mapping WHERE plugin_id =(SELECT id FROM plugin_metadata WHERE name='Image Scan');
4
-
DELETEFROM plugin_tag_relation WHERE plugin_id =(SELECT id FROM plugin_metadata WHERE name='Image Scan');
5
-
DELETEFROM pipeline_stage_step where ref_plugin_id in (SELECT id from plugin_metadata WHERE name ='Image Scan');
6
-
DELETEfrom plugin_pipeline_script where id = (SELECT script_id from plugin_step WHERE plugin_id=(SELECT id FROM plugin_metadata WHERE name='Image Scan'));
7
-
DELETEFROM plugin_metadata WHERE name ='Image Scan';
1
+
-- empty script to keep script number common across repo
VALUES (nextval('id_seq_plugin_tag_relation'),(SELECT id FROM plugin_tag WHERE name='DevSecOps') , (SELECT id FROM plugin_metadata WHERE name='Image Scan'),'now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_tag_relation'),(SELECT id FROM plugin_tag WHERE name='Security') , (SELECT id FROM plugin_metadata WHERE name='Image Scan'),'now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_step_variable'), (SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Image Scan'and ps."index"=1andps.deleted=false), 'IS_IMAGE_SCAN','BOOL','Flag to identify if this plugin used for image scan',false,true,'INPUT','NEW','true',1 ,'f','now()', 1, 'now()', 1);
VALUES (nextval('id_seq_plugin_step_variable'), (SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Image Scan'and ps."index"=1andps.deleted=false), 'IS_POST_CI_STAGE','BOOL','Flag to identify at which stage this plugin is to be used',false,true,'INPUT','NEW','true',1 ,'f','now()', 1, 'now()', 1);
24
-
1
+
-- empty script to keep script number common across repo
0 commit comments