Spaces:
Runtime error
Runtime error
Download deploy/selfhost/postgres/01_roles.sql from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/deploy/selfhost/postgres/01_roles.sql
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/deploy/selfhost/postgres/01_roles.sql
-
curl -L -o 01_roles.sql https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/deploy/selfhost/postgres/01_roles.sql
505 Bytes
| -- Local self-host roles. These are database roles, not provider credentials. | |
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'anon') THEN | |
| CREATE ROLE anon NOLOGIN; | |
| END IF; | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'authenticated') THEN | |
| CREATE ROLE authenticated NOLOGIN; | |
| END IF; | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'service_role') THEN | |
| CREATE ROLE service_role NOLOGIN BYPASSRLS; | |
| END IF; | |
| END | |
| $$; | |
| ALTER ROLE service_role BYPASSRLS; | |