From b46ff715c3c7ea8cd0de019455605506fed1faae Mon Sep 17 00:00:00 2001 From: David Rogers Date: Tue, 29 Oct 2024 12:00:11 -0700 Subject: [PATCH] chore: update db notes (#442) (#443) --- db_scripts/create-users.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/db_scripts/create-users.sql b/db_scripts/create-users.sql index ec535579..a63e51b8 100644 --- a/db_scripts/create-users.sql +++ b/db_scripts/create-users.sql @@ -32,6 +32,7 @@ GRANT CONNECT ON DATABASE hcaatlastracker TO hat_app; -- Additional: Grant EXECUTE on all current and future functions/procedures in 'hat' schema to hat_app GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA hat TO hat_app; GRANT EXECUTE ON ALL PROCEDURES IN SCHEMA hat TO hat_app; +GRANT USAGE, SELECT, UPDATE ON SEQUENCE hat.users_id_seq TO hat_app; ALTER DEFAULT PRIVILEGES FOR ROLE hat_migrate IN SCHEMA hat GRANT EXECUTE ON FUNCTIONS TO hat_app; ALTER DEFAULT PRIVILEGES FOR ROLE hat_migrate IN SCHEMA hat