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;