From a209ca493d100193b4472dc7494d4ff298a58ee2 Mon Sep 17 00:00:00 2001 From: amontenegro Date: Tue, 28 Nov 2023 12:16:51 -0600 Subject: [PATCH] Grant read permissions to dw_event table to dw_user --- orcid-persistence/src/main/resources/db-master.xml | 1 + .../updates/grant_select_to_dw_user_on_dw_event.xml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 orcid-persistence/src/main/resources/db/updates/grant_select_to_dw_user_on_dw_event.xml 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; + + +