-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2614 "It should be possible to mark a metadata as anonimizable"
- Loading branch information
Showing
9 changed files
with
108 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 24 additions & 1 deletion
25
...sistence/src/main/resources/db/migration/V80__add_anonimized_column_to_roleassignment.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
alter table roleassignment add column if not exists anonymized boolean not null default false; | ||
ALTER TABLE roleassignment DROP CONSTRAINT unq_roleassignment_0; | ||
alter table roleassignment add CONSTRAINT unq_roleassignment_0 UNIQUE (assigneeidentifier, role_id, definitionpoint_id, anonymized); | ||
alter table roleassignment add CONSTRAINT unq_roleassignment_0 UNIQUE (assigneeidentifier, role_id, definitionpoint_id, anonymized); | ||
|
||
alter table datasetfieldtype add column visiblethroughanonymizedurl bool default true not null; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'alternativeURL'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'otherId'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'author'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'datasetContact'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'publication'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'producer'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'productionPlace'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'contributor'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'grantNumber'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'distributor'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'depositor'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'series'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'relatedDataset'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'relatedMaterial'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'otherReferences'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'dataSources'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'originOfSources'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'characteristicOfSources'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'accessToSources'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'dataCollector'; | ||
update datasetfieldtype set visiblethroughanonymizedurl = false where name = 'journalVolumeIssue'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters