Commit 6eb362c8 authored by Sarah's avatar Sarah

modif pour ne pas supprimer les creneaux vides dans les planning de perm

parent c0204ee9
......@@ -38,9 +38,9 @@ new requete($site->dbrw,"DELETE FROM `cpt_verrou` WHERE NOT EXISTS(SELECT * FROM
new requete($site->dbrw,"DELETE FROM `cpt_type_produit` WHERE NOT EXISTS ( SELECT * FROM cpt_produits WHERE cpt_produits.id_typeprod=cpt_type_produit.id_typeprod)");
// Tâche 3 : Nettoyage des créneaux "vides" expriés
// Tâche 3 : Nettoyage des créneaux "vides" expriés (sauf pour les planning de perm: 159=>AE Belfort)
new requete($site->dbrw,"DELETE FROM `pl_gap` WHERE NOT EXISTS ( SELECT * FROM pl_gap_user WHERE pl_gap_user.id_gap = pl_gap.id_gap AND pl_gap_user.id_planning = pl_gap.id_planning ) AND end_gap < NOW( )");
new requete($site->dbrw,"DELETE FROM `pl_gap` WHERE NOT EXISTS ( SELECT * FROM pl_gap_user WHERE pl_gap_user.id_gap = pl_gap.id_gap AND pl_gap_user.id_planning = pl_gap.id_planning ) AND end_gap < NOW( ) AND id_planning != 159");
// Tâche 4 : Nettoyages des sessions expirés
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment