Commit 2cef4b79 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout histo destruction null

parent eeaeb942
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ class v23UpdateStatutParamsIndemnitesEtPj extends AbstractMigration
        $sqlUpdatePjActive = "UPDATE statut SET PJ_ACTIVE  = 0 WHERE id NOT IN (
                                    SELECT s.id FROM type_piece_jointe_statut tpjs
                                    JOIN statut s ON s.id = tpjs.statut_id 
                                    AND tpjs.histo_destruction is NULL
                                    GROUP BY s.id)";
        $bdd->exec($sqlUpdatePjActive);
        //On désactive les indemnités de fin de contrat sur le statut si on a aucun entrée dans la table prime