From d24093dab480b48a72583e5857ff0588e6962434 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Thu, 30 Oct 2025 16:34:32 -0400 Subject: [PATCH] add grants/priveleges to notifications schema --- ...9_add_grants_and_priveleges_to_notifications_schema.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 supabase/migrations/20251030203149_add_grants_and_priveleges_to_notifications_schema.sql diff --git a/supabase/migrations/20251030203149_add_grants_and_priveleges_to_notifications_schema.sql b/supabase/migrations/20251030203149_add_grants_and_priveleges_to_notifications_schema.sql new file mode 100644 index 00000000..c9ea8bd5 --- /dev/null +++ b/supabase/migrations/20251030203149_add_grants_and_priveleges_to_notifications_schema.sql @@ -0,0 +1,7 @@ +GRANT USAGE ON SCHEMA notifications TO anon, authenticated, service_role; +GRANT ALL ON ALL TABLES IN SCHEMA notifications TO anon, authenticated, service_role; +GRANT ALL ON ALL ROUTINES IN SCHEMA notifications TO anon, authenticated, service_role; +GRANT ALL ON ALL SEQUENCES IN SCHEMA notifications TO anon, authenticated, service_role; +ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA notifications GRANT ALL ON TABLES TO anon, authenticated, service_role; +ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA notifications GRANT ALL ON ROUTINES TO anon, authenticated, service_role; +ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA notifications GRANT ALL ON SEQUENCES TO anon, authenticated, service_role; -- 2.51.2