Skip to content

Commit

Permalink
moving db upgrade command
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jan 14, 2019
1 parent 855205c commit f6cc089
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
1 change: 1 addition & 0 deletions scripts/database/upgrades/upgrade_v4.10.1_to_4.11.sql
@@ -0,0 +1 @@
ALTER TABLE datasetversion ADD COLUMN archivalcopylocation text;
31 changes: 15 additions & 16 deletions scripts/database/upgrades/upgrade_v4.9.4_to_v4.10.sql
@@ -1,17 +1,16 @@
ALTER TABLE usernotification
ADD requestor_id BIGINT;
ALTER TABLE datasetfieldtype ADD COLUMN uri text;
ALTER TABLE metadatablock ADD COLUMN namespaceuri text;
ALTER TABLE pendingworkflowinvocation ADD COLUMN datasetexternallyreleased BOOLEAN;
ALTER TABLE datasetversion ADD COLUMN archivalcopylocation text;

INSERT INTO setting(
name, content)
VALUES (':UploadMethods', 'native/http');

ALTER TABLE actionlogrecord ALTER COLUMN info TYPE text;


ALTER TABLE dataverse ALTER COLUMN defaultcontributorrole_id DROP NOT NULL;

ALTER TABLE usernotification
ADD requestor_id BIGINT;
ALTER TABLE datasetfieldtype ADD COLUMN uri text;
ALTER TABLE metadatablock ADD COLUMN namespaceuri text;
ALTER TABLE pendingworkflowinvocation ADD COLUMN datasetexternallyreleased BOOLEAN;

INSERT INTO setting(
name, content)
VALUES (':UploadMethods', 'native/http');

ALTER TABLE actionlogrecord ALTER COLUMN info TYPE text;


ALTER TABLE dataverse ALTER COLUMN defaultcontributorrole_id DROP NOT NULL;

ALTER TABLE datatable ADD COLUMN originalfilesize BIGINT;

0 comments on commit f6cc089

Please sign in to comment.