Skip to content

Commit 69f0026

Browse files
authored
Merge pull request #6875 from ORCID/8802-add-field-that-identifies-search-and-link-wizards-to-dwclientdetails-in-panoply
Added user_obo_enabled column to dw_client_details view
2 parents 5d2f3d6 + 9e7d5b9 commit 69f0026

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

orcid-persistence/src/main/resources/db-master.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,5 @@
372372
<include file="/db/updates/dw_profile_add_locale_reviewed_creation_method.xml" />
373373
<include file="/db/updates/statistics.xml" />
374374
<include file="/db/updates/identifier-types/update-ethos-to-be-case-sensitive.xml" />
375+
<include file="/db/updates/dw_client_details_add_user_obo_enabled.xml" />
375376
</databaseChangeLog>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
4+
5+
<changeSet id="ALTER-DW-CLIENT-DETAILS-VIEW-USER-OBO" author="Camelia Dumitru">
6+
<dropView viewName="dw_client_details"/>
7+
<createView viewName="dw_client_details">
8+
select client_details_id, client_name, client_description, client_website, group_orcid,
9+
client_type, user_obo_enabled, date_created, last_modified
10+
from client_details
11+
</createView>
12+
</changeSet>
13+
14+
<changeSet id="GRANT-READ-TO-DW-USER-ON-DW-CLIENT_DETAILS_OBO" author="Camelia Dumitru" dbms="postgresql">
15+
<preConditions>
16+
<sqlCheck expectedResult="1">SELECT 1 FROM pg_roles WHERE rolname='dw_user'</sqlCheck>
17+
</preConditions>
18+
<sql>GRANT SELECT ON TABLE dw_client_details to dw_user;</sql>
19+
</changeSet>
20+
</databaseChangeLog>

0 commit comments

Comments
 (0)