diff --git a/orcid-persistence/src/main/resources/db-master.xml b/orcid-persistence/src/main/resources/db-master.xml index 0fd77537b67..d3bd25cea31 100644 --- a/orcid-persistence/src/main/resources/db-master.xml +++ b/orcid-persistence/src/main/resources/db-master.xml @@ -379,4 +379,5 @@ + diff --git a/orcid-persistence/src/main/resources/db/updates/grant_select_to_dw_user_on_dw_event.xml b/orcid-persistence/src/main/resources/db/updates/grant_select_to_dw_user_on_dw_event.xml new file mode 100644 index 00000000000..eb228884269 --- /dev/null +++ b/orcid-persistence/src/main/resources/db/updates/grant_select_to_dw_user_on_dw_event.xml @@ -0,0 +1,11 @@ + + + + + SELECT 1 FROM pg_roles WHERE rolname='dw_user' + + GRANT SELECT ON TABLE dw_event to dw_user; + + +