Skip to content

Commit cba0124

Browse files
Add migration to revoke PUBLIC access on new tables
REVOKE statements are not captured by supabase db diff (known limitation of migra tool). Adding separate migration as recommended by Supabase docs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent aea59ff commit cba0124

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revoke default PUBLIC access on new tables.
2+
-- REVOKE statements are not captured by supabase db diff, so we add them manually.
3+
-- See: https://supabase.com/docs/guides/local-development/declarative-database-schemas
4+
5+
REVOKE ALL ON TABLE public.feedback FROM PUBLIC;
6+
REVOKE ALL ON TABLE public.scan_analyses FROM PUBLIC;

0 commit comments

Comments
 (0)