Commit 27bc8f1e authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Suppression des triggers de calcul de formule sur les modulateurs

parent 25bbf680
Loading
Loading
Loading
Loading

data/ddl/trigger/F_MODULATEUR.sql

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
CREATE OR REPLACE TRIGGER "F_MODULATEUR"
AFTER UPDATE OR DELETE ON modulateur
FOR EACH ROW
BEGIN

  IF NOT UNICAEN_TBL.ACTIV_TRIGGERS THEN RETURN; END IF;

  FOR p IN (

    SELECT DISTINCT
      s.intervenant_id
    FROM
      service s
      JOIN element_modulateur em ON
        em.element_id   = s.element_pedagogique_id
        AND em.histo_destruction IS NULL
    WHERE
      s.histo_destruction IS NULL
      AND (em.modulateur_id = :OLD.id OR em.modulateur_id = :NEW.id)

  ) LOOP

    UNICAEN_TBL.DEMANDE_CALCUL('formule', 'INTERVENANT_ID', p.intervenant_id );

  END LOOP;
END;
 No newline at end of file
+0 −5
Original line number Diff line number Diff line
CREATE OR REPLACE TRIGGER "F_MODULATEUR_S"
AFTER UPDATE OR DELETE ON modulateur
BEGIN
    UNICAEN_TBL.CALCULER_DEMANDES;
END;
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ return [
            'F_STATUT_INTERVENANT_S',
            'F_TYPE_INTERVENTION',
            'F_TYPE_INTERVENTION_S',
            'F_MODULATEUR',
            'F_MODULATEUR_S',
        ],
    ],
    'sequence'          => [