From 688b1bcfb0baff4f6ef5b46016c5de5a7af155bb Mon Sep 17 00:00:00 2001 From: gabrielwol <80077912+gabrielwol@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:46:27 +0000 Subject: [PATCH] #905 update permissions for api_bot --- .../sql/open_data/create-table-miovision_open_data_15min.sql | 3 +++ .../create-table-miovision_open_data_monthly_summary.sql | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/volumes/miovision/sql/open_data/create-table-miovision_open_data_15min.sql b/volumes/miovision/sql/open_data/create-table-miovision_open_data_15min.sql index 51d742fa7..e1df6daea 100644 --- a/volumes/miovision/sql/open_data/create-table-miovision_open_data_15min.sql +++ b/volumes/miovision/sql/open_data/create-table-miovision_open_data_15min.sql @@ -30,6 +30,9 @@ GRANT ALL ON TABLE gwolofs.miovision_15min_open_data TO gwolofs; GRANT ALL ON TABLE gwolofs.miovision_15min_open_data TO miovision_admins; +GRANT SELECT, INSERT, DELETE ON TABLE gwolofs.miovision_15min_open_data +TO miovision_api_bot; + COMMENT ON TABLE gwolofs.miovision_15min_open_data IS 'Table to store Miovision 15min open data. Updated monthly. Schema is a blend of TMC and ATR style data to cover different diff --git a/volumes/miovision/sql/open_data/create-table-miovision_open_data_monthly_summary.sql b/volumes/miovision/sql/open_data/create-table-miovision_open_data_monthly_summary.sql index 28d64e0cf..6b8c4d627 100644 --- a/volumes/miovision/sql/open_data/create-table-miovision_open_data_monthly_summary.sql +++ b/volumes/miovision/sql/open_data/create-table-miovision_open_data_monthly_summary.sql @@ -1,4 +1,4 @@ --- DROP TABLE gwolofs.miovision_open_data_monthly_summary;\ +-- DROP TABLE gwolofs.miovision_open_data_monthly_summary; CREATE TABLE gwolofs.miovision_open_data_monthly_summary ( intersection_uid integer, @@ -34,6 +34,9 @@ GRANT ALL ON TABLE gwolofs.miovision_open_data_monthly_summary TO gwolofs; GRANT ALL ON TABLE gwolofs.miovision_open_data_monthly_summary TO miovision_admins; +GRANT SELECT, INSERT, DELETE ON TABLE gwolofs.miovision_open_data_monthly_summary +TO miovision_api_bot; + COMMENT ON TABLE gwolofs.miovision_open_data_monthly_summary IS 'Table to store Miovision monthly summary open data. Contains an approachable monthly-intersection summary of