Skip to content

Commit 4bb4129

Browse files
committed
rollback
1 parent 2bb1c63 commit 4bb4129

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
-- default superuser
1+
-- postgres user for developers
2+
CREATE USER postgres WITH LOGIN;
23
GRANT rds_replication TO postgres;
3-
4-
-- Supabase super admin
5-
create user supabase_admin;
6-
alter user supabase_admin with createdb createrole bypassrls;
7-
grant supabase_admin to postgres;
8-
grant rds_superuser to supabase_admin; -- for RDS
9-
grant rds_replication to supabase_admin; -- for RDS

src/supabase-db/sql/init-scripts/00000000000000-initial-schema.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
create publication supabase_realtime;
66

77
-- Supabase super admin
8-
-- create user supabase_admin;
9-
-- alter user supabase_admin with superuser createdb createrole replication bypassrls;
8+
-- create user supabase_admin; -- supabase_admin is rds_superuser.
9+
alter user supabase_admin with createdb createrole bypassrls;
10+
grant rds_replication to supabase_admin; -- for RDS
1011

1112
-- Supabase replication user
1213
create user supabase_replication_admin with login;

src/supabase-db/sql/init-scripts/00000000000001-auth-schema.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ GRANT USAGE ON SCHEMA auth TO anon, authenticated, service_role;
110110

111111
-- Supabase super admin
112112
CREATE USER supabase_auth_admin NOINHERIT CREATEROLE LOGIN NOREPLICATION;
113-
grant supabase_auth_admin to postgres; -- RDS
114113
GRANT ALL PRIVILEGES ON SCHEMA auth TO supabase_auth_admin;
115114
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA auth TO supabase_auth_admin;
116115
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA auth TO supabase_auth_admin;

0 commit comments

Comments
 (0)