Uh oh!
There was an error while loading. Please reload this page.
fix: add privilege migration note for db dump - #4885
Conversation
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughSummary by CodeRabbit
WalkthroughThis pull request adds a "Note on Privilege Migration" section to the Supabase database dump documentation. The new section explains that default privileges assigned to anon and authenticated roles in a new project can override specific privileges from a database dump. It provides a SQL workaround that revokes default privileges before restoring the dump, ensuring that the dumped privileges are correctly applied during migration between Supabase projects. Assessment against linked issues
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
coveralls
commented
Mar 10, 2026
Pull Request Test Coverage Report for Build 22912038292Details
💛 - Coveralls |
Uh oh!
There was an error while loading. Please reload this page.
Problem
When migrating schemas between projects using
supabase db dumptable privileges are not preserved. Tables in the target database inherit ALL privileges from default privileges, causing specific GRANT statements to have no effect.
Solution
Document the privilege migration behavior and provide the SQL command to run before restoring.
Related