Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions migrations/db/migrations/00000000000000-initial-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ grant authenticated to authenticator;
grant service_role to authenticator;
grant supabase_admin to authenticator;

-- These are required so that the users receive grants whenever "postgres" creates tables/function
grant usage on schema public to postgres, anon, authenticated, service_role;
alter default privileges in schema public grant all on tables to postgres, anon, authenticated, service_role;
alter default privileges in schema public grant all on functions to postgres, anon, authenticated, service_role;
alter default privileges in schema public grant all on sequences to postgres, anon, authenticated, service_role;
alter default privileges for role postgres in schema public grant all on tables to postgres, anon, authenticated, service_role;
alter default privileges for role postgres in schema public grant all on functions to postgres, anon, authenticated, service_role;
alter default privileges for role postgres in schema public grant all on sequences to postgres, anon, authenticated, service_role;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missing before, now it's much cleaner and explicit.


-- Allow Extensions to be used in the API
grant usage on schema extensions to postgres, anon, authenticated, service_role;
Expand Down