Skip to content

Commit

Permalink
Evarisk#3368 [SQL] fix: remove unused triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Oct 11, 2023
1 parent 0a5c9a4 commit cfc49ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, desc
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_CREATE', 'PreventionPlanLineCreated', 'Executed when a prevention plan line is created');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_MODIFY', 'PreventionPlanLineModified', 'Executed when a prevention plan line is modified');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_DELETE', 'PreventionPlanLineDeleted', 'Executed when a prevention plan line is deleted');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANSIGNATURE_ADDATTENDANT', 'PreventionPlanSignatureAddAttendant', 'Executed when an attendant is added to a prevention plan');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_SENTBYMAIL', 'PreventionPlanSentByMail', 'Executed when a prevention plan is sent by mail');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_CREATE', 'FirePermitCreated', 'Executed when a fire permit is created');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_MODIFY', 'FirePermitModified', 'Executed when a fire permit is modified');
Expand All @@ -873,12 +872,7 @@ INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, desc
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITLINE_CREATE', 'FirePermitLineCreated', 'Executed when a fire permit is created');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITLINE_MODIFY', 'FirePermitLineModified', 'Executed when a fire permit is modified');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITLINE_DELETE', 'FirePermitLineDeleted', 'Executed when a fire permit is deleted');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITSIGNATURE_ADDATTENDANT', 'FirePermitSignatureAddAttendant', 'Executed when an attendant is added to a fire permit');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_SENTBYMAIL', 'FirePermitSentByMail', 'Executed when a fire permit is sent by mail');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digirisksignature@digiriskdolibarr', 'DIGIRISKSIGNATURE_SIGNED', 'DigiriskSignatureSigned', 'Executed when a digirisk element is signed');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digirisksignature@digiriskdolibarr', 'DIGIRISKSIGNATURE_PENDING_SIGNATURE', 'DigiriskSignaturePendingSignature', 'Executed when a digirisk element is pending signature');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digirisksignature@digiriskdolibarr', 'DIGIRISKSIGNATURE_ABSENT', 'DigiriskSignatureAbsent', 'Executed when an attendant is absent to sign a digirisk element');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digirisksignature@digiriskdolibarr', 'DIGIRISKSIGNATURE_DELETED', 'DigiriskSignatureDeleted', 'Executed when an attendant is deleted from a digirisk element');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_CREATE', 'RiskCreated', 'Executed when a risk is created');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_MODIFY', 'RiskModified', 'Executed when a risk is modified');
INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_DELETE', 'RiskDeleted', 'Executed when a risk is deleted');
Expand Down
7 changes: 7 additions & 0 deletions sql/update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,10 @@ DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'ACCIDENT_WORKSTOP
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'ACCIDENT_LESION_CREATE';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'ACCIDENT_LESION_MODIFY';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'ACCIDENT_LESION_DELETE';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'PREVENTIONPLANSIGNATURE_ADDATTENDANT';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'FIREPERMITSIGNATURE_ADDATTENDANT';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'DIGIRISKSIGNATURE_SIGNED';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'DIGIRISKSIGNATURE_PENDING_SIGNATURE';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'DIGIRISKSIGNATURE_ABSENT';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'DIGIRISKSIGNATURE_DELETED';
DELETE FROM llx_c_digiriskdolibarr_action_trigger WHERE ref = 'OPENINGHOURS_CREATE';

0 comments on commit cfc49ec

Please sign in to comment.