Skip to content

Commit

Permalink
chore: update migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Mar 20, 2024
1 parent 3ca5c3f commit 4e9e50c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ revoke supabase_auth_admin from postgres;
revoke all on table auth.schema_migrations from postgres;
grant select on table auth.schema_migrations to postgres;

revoke supabase_storage_admin from postgres;
revoke all on table storage.migrations from postgres;
grant select on table storage.migrations to postgres;

-- migrate:down
4 changes: 4 additions & 0 deletions migrations/tests/database/privs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ SELECT schema_privs_are('extensions', 'postgres', array['CREATE', 'USAGE']);
SELECT schema_privs_are('extensions', 'anon', array['USAGE']);
SELECT schema_privs_are('extensions', 'authenticated', array['USAGE']);
SELECT schema_privs_are('extensions', 'service_role', array['USAGE']);

-- Verify auth schema privileges
SELECT schema_privs_are('auth', 'postgres', array['CREATE', 'USAGE']);
SELECT table_privs_are('auth', 'schema_migrations', 'postgres', array['SELECT']);

0 comments on commit 4e9e50c

Please sign in to comment.