Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sygal-db-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
docker
sygal-db-image
Commits
6b1a34ca
Commit
6b1a34ca
authored
10 months ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/demo/src/db/05_post_anonym.sql
+11
-0
11 additions, 0 deletions
bin/demo/src/db/05_post_anonym.sql
with
11 additions
and
0 deletions
bin/demo/src/db/05_post_anonym.sql
+
11
−
0
View file @
6b1a34ca
...
...
@@ -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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment