forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2606-citation-date' of github.com:IQSS/dataverse into 2…
…606-citation-date
- Loading branch information
Showing
3 changed files
with
39 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
/** | ||
* Author: skraffmi | ||
* Created: Mar 4, 2016 | ||
*/ | ||
|
||
alter table | ||
datasetversion | ||
drop column availabilitystatus, | ||
drop column citationrequirements, | ||
drop column conditions, | ||
drop column confidentialitydeclaration, | ||
drop column contactforaccess, | ||
drop column depositorrequirements, | ||
drop column disclaimer, | ||
drop column fileaccessrequest, | ||
drop column license, | ||
drop column originalarchive, | ||
drop column restrictions, | ||
drop column sizeofcollection, | ||
drop column specialpermissions, | ||
drop column studycompletion, | ||
drop column termsofaccess, | ||
drop column termsofuse; | ||
|
||
-- Add new foreign ket to dataset for citation date (from datasetfieldtype) | ||
ALTER TABLE dataset ADD COLUMN citationdatedatasetfieldtype_id bigint; | ||
|
||
ALTER TABLE dataset | ||
ADD CONSTRAINT fk_dataset_citationdatedatasetfieldtype_id FOREIGN KEY (citationdatedatasetfieldtype_id) | ||
REFERENCES datasetfieldtype (id) MATCH SIMPLE | ||
ON UPDATE NO ACTION ON DELETE NO ACTION; | ||
ON UPDATE NO ACTION ON DELETE NO ACTION; |
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