Skip to content

Commit

Permalink
Afegides consultes que faltaven d‘eliminació de taules relatives al soci
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed May 31, 2020
1 parent 8c6738b commit 551892a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions server/controllers/socis.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,23 @@ exports.socis_delete = (req, res, next) => {
FROM historial_socis
WHERE id_historial_soci = @id_persona;
DELETE
FROM socis_acceptacions
WHERE id_soci = @id_persona;
DELETE
FROM socis_activitats
WHERE id_soci = @id_persona;
DELETE sav
FROM socis_agrupacions_veus sav
INNER JOIN socis_agrupacions USING (id_soci_agrupacio)
WHERE id_soci = @id_persona;
DELETE
FROM socis_agrupacions
WHERE id_soci = @id_persona;
DELETE
FROM socis
WHERE id_soci = @id_persona;
Expand Down

0 comments on commit 551892a

Please sign in to comment.