Commit 9520ec8a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'master' of https://git.unicaen.fr/open-source/OSE

parents 58920e1b 8e943cb2
Loading
Loading
Loading
Loading
+16 −15
Original line number Diff line number Diff line
@@ -25,10 +25,11 @@ SELECT
  /* Identifiants */
  s.id               service_id,
  vh.id              volume_horaire_id,
  vh.auto_validation auto_validation,
  vvh.validation_id  validation_id,
  vh.contrat_id      contrat_id,
  /* Heures */
  vh.heures
  vh.heures          heures
FROM
  volume_horaire vh
  JOIN service s ON s.id = vh.service_id AND s.histo_destruction IS NULL
@@ -69,7 +70,7 @@ DELETE FROM VALIDATION_VOL_HORAIRE WHERE volume_horaire_id = /*VOLUME_HORAIRE ID

Historiser un volume horaire :
```sql
UPDATE volume_horaire SET histo_destruction=SYSDATE, histo_destructeur_id=/*UTILISATEUR_ID*/;
UPDATE volume_horaire SET histo_destruction=SYSDATE, histo_destructeur_id=/*UTILISATEUR_ID*/ WHERE volume_horaire_id =  /*VOLUME_HORAIRE ID*/;
```

L’UTILISATEUR_ID doit être le vôtre. Il correspond à une valeur de la colonne UTILISATEUR.ID