Skip to content

Commit 53e1ca9

Browse files
committed
chore: remove redundant grants
1 parent e01b599 commit 53e1ca9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
-- migrate:up
22
revoke supabase_auth_admin from postgres;
3-
revoke all on table auth.schema_migrations from postgres;
4-
grant select on table auth.schema_migrations to postgres;
53

64
-- migrate:down

migrations/tests/database/privs.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ SELECT schema_privs_are('extensions', 'anon', array['USAGE']);
2929
SELECT schema_privs_are('extensions', 'authenticated', array['USAGE']);
3030
SELECT schema_privs_are('extensions', 'service_role', array['USAGE']);
3131

32-
-- Verify auth schema privileges
33-
SELECT schema_privs_are('auth', 'postgres', array['CREATE', 'USAGE']);
34-
SELECT table_privs_are('auth', 'schema_migrations', 'postgres', array['SELECT']);
32+
-- Role memberships
33+
SELECT isnt_member_of('supabase_auth_admin', 'postgres');

0 commit comments

Comments
 (0)