Skip to content

Commit

Permalink
Merge pull request #6941 from ORCID/ReadPermissionsOnDWEventsTable
Browse files Browse the repository at this point in the history
Grant read permissions to dw_event table to dw_user
  • Loading branch information
amontenegro authored Nov 28, 2023
2 parents af1d1d2 + a209ca4 commit 2768081
Show file tree
Hide file tree
Showing 2 changed files with 12 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 @@ -379,4 +379,5 @@
<include file="/db/updates/create_event_indexes.xml" />
<include file="/db/updates/dw_alter_event.xml" />
<include file="/db/updates/dw_alter_event_2.xml" />
<include file="/db/updates/grant_select_to_dw_user_on_dw_event.xml" />
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<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="GRANT-READ-PERMISSIONS-ON-DW_EVENT" author="Angel Montenegro" dbms="postgresql">
<preConditions>
<sqlCheck expectedResult="1">SELECT 1 FROM pg_roles WHERE rolname='dw_user'</sqlCheck>
</preConditions>
<sql>GRANT SELECT ON TABLE dw_event to dw_user;</sql>
</changeSet>

</databaseChangeLog>

0 comments on commit 2768081

Please sign in to comment.