Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include script for restoring supabase user privileges #45

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

khaya-zulu
Copy link
Contributor

@khaya-zulu khaya-zulu commented Dec 19, 2023

A user reported, the following error, when running queries in their Supabase app.

permission denied for schema public

The supabase sdk uses the "postgres" user to perform queries in a schema's table. If snaplet restore, is ran without the --no-reset, the default privileges for this user are dropped and not restored. This may also be true for other users.

To restore the privileges, the user should run this script in after restoring with Snaplet.

This is only required for restores, missing the --no-reset flag. In the future this flag will automatically be inserted for Supabase users.

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 1:46pm

Copy link
Contributor

@avallete avallete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@avallete
Copy link
Contributor

@khaya-zulu when this get merged please inform the user on crisp by pointing him to the docs: https://app.crisp.chat/website/fe9936af-032f-4276-a5a5-7ec977877d40/inbox/session_c1f78773-7fad-473b-88d8-5e38b6074e42

@khaya-zulu khaya-zulu merged commit 7434017 into main Jan 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants