Skip to content
Snippets Groups Projects
Commit 6b1a34ca authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Anonymisation du npd ou ménage dans les tables substit_*

parent 585f8f9f
No related branches found
No related tags found
No related merge requests found
......@@ -15,3 +15,14 @@ set nom = i.nom_usuel, prenom = i.prenom1, display_name = i.prenom1 || ' ' || i.
from individu i
where u.individu_id = i.id
;
-- anonymisation du npd dans les tables substit_* (non gérées par unicaen/db-anonym car par d'entités associées)
update substit_doctorant set npd = md5(random()::varchar);
update substit_ecole_doct set npd = md5(random()::varchar);
update substit_etablissement set npd = md5(random()::varchar);
update substit_individu set npd = md5(random()::varchar);
update substit_structure set npd = md5(random()::varchar);
update substit_unite_rech set npd = md5(random()::varchar);
-- données inutiles
delete from substit_fk_replacement;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment