Skip to content

Commit 3ca5c3f

Browse files
committed
fix: prevent postgres from mutating migration history
1 parent 9e1e0bd commit 3ca5c3f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- migrate:up
2+
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;
5+
6+
revoke supabase_storage_admin from postgres;
7+
revoke all on table storage.migrations from postgres;
8+
grant select on table storage.migrations to postgres;
9+
10+
-- migrate:down

0 commit comments

Comments
 (0)