@@ -111,10 +111,11 @@ grant authenticated to authenticator;
111
111
grant service_role to authenticator;
112
112
grant supabase_admin to authenticator;
113
113
114
+ -- These are required so that the users receive grants whenever "postgres" creates tables/function
114
115
grant usage on schema public to postgres, anon, authenticated, service_role;
115
- alter default privileges in schema public grant all on tables to postgres, anon, authenticated, service_role;
116
- alter default privileges in schema public grant all on functions to postgres, anon, authenticated, service_role;
117
- alter default privileges in schema public grant all on sequences to postgres, anon, authenticated, service_role;
116
+ alter default privileges for role postgres in schema public grant all on tables to postgres, anon, authenticated, service_role;
117
+ alter default privileges for role postgres in schema public grant all on functions to postgres, anon, authenticated, service_role;
118
+ alter default privileges for role postgres in schema public grant all on sequences to postgres, anon, authenticated, service_role;
118
119
119
120
-- Allow Extensions to be used in the API
120
121
grant usage on schema extensions to postgres, anon, authenticated, service_role;
0 commit comments