Skip to content

Commit

Permalink
Merge pull request #10634 from IQSS/9081-CC0-waiver-turned-into-custo…
Browse files Browse the repository at this point in the history
…m-license

adding sql script to convert custom license CC0 Waiver to CC0 1.0
  • Loading branch information
sekmiller authored Jul 22, 2024
2 parents 52e969e + db19451 commit d33e249
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
In an earlier Dataverse release, Datasets with only 'CC0 Waiver' in termsofuse field were converted to 'Custom License' instead of CC0 1.0 licenses during an automated process. A new process was added to correct this. Only Datasets with no terms other than the one create by the previous process will be modified.
- The existing 'Terms of Use' must be equal to 'This dataset is made available under a Creative Commons CC0 license with the following additional/modified terms and conditions: CC0 Waiver'
- The following terms fields must be empty: Confidentiality Declaration, Special Permissions, Restrictions, Citation Requirements, Depositor Requirements, Conditions, and Disclaimer.
- The License ID must not be assigned.

This process will set the License ID to that of the CC0 1.0 license and remove the contents of termsofuse field.
10 changes: 10 additions & 0 deletions src/main/resources/db/migration/V6.3.0.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
UPDATE termsofuseandaccess SET license_id = (SELECT license.id FROM license WHERE license.name = 'CC0 1.0'), termsofuse = NULL
WHERE termsofuse = 'This dataset is made available under a Creative Commons CC0 license with the following additional/modified terms and conditions: CC0 Waiver'
AND license_id IS null
AND confidentialitydeclaration IS null
AND specialpermissions IS null
AND restrictions IS null
AND citationrequirements IS null
AND depositorrequirements IS null
AND conditions IS null
AND disclaimer IS null;

0 comments on commit d33e249

Please sign in to comment.