Repository navigation
Commit 8372c18
authored
fix(tests): grant API access to integration test tables and functions (#1018)
New Supabase behavior no longer auto-grants public schema access to the
anon and authenticated roles. Explicit GRANT statements are now required
for tables, views, sequences, and functions to be reachable via the
REST/GraphQL Data API.
Adds a new migration that grants ALL on tables, SELECT on the updatable
view, USAGE/SELECT on SERIAL sequences, and EXECUTE on RPC functions to
the anon and authenticated roles.
Ref: https://github.com/orgs/supabase/discussions/453291 parent 92d7c6f commit 8372c18
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments