mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +00:00
## Problem The first step of the Storage "Custom Roles" guide uses `create role 'manager';`. Role names are identifiers, not string literals, so Postgres rejects it with `syntax error at or near "'manager'"`. Every later step in the guide depends on that role. Closes #53723 ## Solution Remove the single quotes: `create role manager;`. The rest of the page already uses the unquoted name (`grant manager to authenticator;`, `to manager`). ## Review instructions 1. Open the [Custom Roles guide](https://supabase.com/docs/guides/storage/schema/custom-roles) and look at the first SQL block: `create role 'manager';` is a syntax error in Postgres (reproduced with the Postgres parser, see #53723). 2. Open the preview of this PR. The block is now `create role manager;`, which parses, and the following `grant` statements refer to the same unquoted name. 3. Run `pnpm test:prettier`. It passes for this file with the repo's `prettier.config.mjs`. I also parsed every `sql` block under `guides/storage/schema` with the Postgres parser (`libpg-query`). All 7 parse after this change. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide). (Not run: this is a one-token correction to an existing SQL statement.) Co-authored-by: Santhosh-x23 <185920429+Santhosh-x23@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com>