Skip to content

Commit

Permalink
Merge pull request #6875 from ORCID/8802-add-field-that-identifies-se…
Browse files Browse the repository at this point in the history
…arch-and-link-wizards-to-dwclientdetails-in-panoply

Added user_obo_enabled column to dw_client_details view
  • Loading branch information
amontenegro authored Aug 30, 2023
2 parents 5d2f3d6 + 9e7d5b9 commit 69f0026
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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>

0 comments on commit 69f0026

Please sign in to comment.