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

Added user_obo_enabled column to dw_client_details view #6875

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
1 change: 1 addition & 0 deletions orcid-persistence/src/main/resources/db-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,5 @@
<include file="/db/updates/dw_profile_add_locale_reviewed_creation_method.xml" />
<include file="/db/updates/statistics.xml" />
<include file="/db/updates/identifier-types/update-ethos-to-be-case-sensitive.xml" />
<include file="/db/updates/dw_client_details_add_user_obo_enabled.xml" />
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

<changeSet id="ALTER-DW-CLIENT-DETAILS-VIEW-USER-OBO" author="Camelia Dumitru">
<dropView viewName="dw_client_details"/>
<createView viewName="dw_client_details">
select client_details_id, client_name, client_description, client_website, group_orcid,
client_type, user_obo_enabled, date_created, last_modified
from client_details
</createView>
</changeSet>

<changeSet id="GRANT-READ-TO-DW-USER-ON-DW-CLIENT_DETAILS_OBO" author="Camelia Dumitru" dbms="postgresql">
<preConditions>
<sqlCheck expectedResult="1">SELECT 1 FROM pg_roles WHERE rolname='dw_user'</sqlCheck>
</preConditions>
<sql>GRANT SELECT ON TABLE dw_client_details to dw_user;</sql>
</changeSet>
</databaseChangeLog>