-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6875 from ORCID/8802-add-field-that-identifies-se…
…arch-and-link-wizards-to-dwclientdetails-in-panoply Added user_obo_enabled column to dw_client_details view
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
orcid-persistence/src/main/resources/db/updates/dw_client_details_add_user_obo_enabled.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |