Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the database for migration #61

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion pass-core-main/src/main/resources/db/changelog/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,21 @@ databaseChangeLog:
path: /db/changelog/schema/postgres-pattern-indices.sql
splitStatements: true
stripComments: true

- changeSet:
id: 6
author: mark-patton
changes:
- sqlFile:
encoding: utf-8
path: /db/changelog/schema/long-text.sql
splitStatements: true
stripComments: true
- changeSet:
id: 7
author: mark-patton
changes:
- sqlFile:
encoding: utf-8
path: /db/changelog/schema/index-localkey.sql
splitStatements: true
stripComments: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Index Grant.localKey
CREATE INDEX pass_grant_localkey_ix ON public.pass_grant (localkey);

-- Index Funder.localKey
CREATE INDEX pass_funder_localkey_ix ON public.pass_funder (localkey);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

-- Support long for File.descripton
ALTER TABLE public.pass_file ALTER COLUMN description TYPE text;

-- Support long Publication.title
ALTER TABLE public.pass_publication ALTER COLUMN title TYPE text;

-- Support long SubmissionEvent.comment
ALTER TABLE public.pass_submission_event ALTER COLUMN comment TYPE text;


Loading