Spaces:
Runtime error
Runtime error
Download init.sql from devmurtaza/RastaAI: direct link, hf CLI and curl.
- Browser
- Download file 730 Bytes
-
https://huggingface.co/spaces/devmurtaza/RastaAI/resolve/main/init.sql
- Command line
-
hf download hf://spaces/devmurtaza/RastaAI/init.sql
-
curl -L -o init.sql https://huggingface.co/spaces/devmurtaza/RastaAI/resolve/main/init.sql
730 Bytes
| -- Initialize PostgreSQL database with proper permissions | |
| -- This script sets up the rasta_ai database and grants necessary privileges | |
| -- Ensure the user has all privileges on the database | |
| GRANT ALL PRIVILEGES ON DATABASE rasta_ai TO rasta; | |
| -- Connect to the database and grant schema permissions | |
| \c rasta_ai | |
| -- Grant all privileges on the public schema | |
| GRANT ALL ON SCHEMA public TO rasta; | |
| -- Make rasta the owner of future objects in public schema | |
| ALTER DEFAULT PRIVILEGES FOR USER postgres IN SCHEMA public GRANT ALL ON TABLES TO rasta; | |
| ALTER DEFAULT PRIVILEGES FOR USER postgres IN SCHEMA public GRANT ALL ON SEQUENCES TO rasta; | |
| ALTER DEFAULT PRIVILEGES FOR USER postgres IN SCHEMA public GRANT ALL ON FUNCTIONS TO rasta; | |