Download deploy/postgres-init.sql from SushantGautam/simpleaudit-studio: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/SushantGautam/simpleaudit-studio/resolve/main/deploy/postgres-init.sql
- Command line
-
hf download hf://spaces/SushantGautam/simpleaudit-studio/deploy/postgres-init.sql
-
curl -L -o postgres-init.sql https://huggingface.co/spaces/SushantGautam/simpleaudit-studio/resolve/main/deploy/postgres-init.sql
495 Bytes
| -- Runs once on first postgres container start (mounted into /docker-entrypoint-initdb.d/). | |
| -- Creates the Hatchet workflow database alongside the main SimpleAudit domain database. | |
| -- The main ${POSTGRES_DB} database is created automatically by the official postgres image; | |
| -- this only adds the separate Hatchet queue database. | |
| SELECT 'CREATE DATABASE hatchet' | |
| WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'hatchet')\gexec | |
| GRANT ALL PRIVILEGES ON DATABASE hatchet TO simpleaudit; | |