Download backend/src/migrations/sql/20260503_0001_app_settings.sql from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/src/migrations/sql/20260503_0001_app_settings.sql
- Command line
-
hf download hf://spaces/new-arc/vector/backend/src/migrations/sql/20260503_0001_app_settings.sql
-
curl -L -o 20260503_0001_app_settings.sql https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/src/migrations/sql/20260503_0001_app_settings.sql
565 Bytes
| CREATE TABLE IF NOT EXISTS app_settings ( | |
| setting_key VARCHAR(100) PRIMARY KEY, | |
| encrypted_value TEXT NOT NULL, | |
| prefer_admin_value BOOLEAN NOT NULL DEFAULT false, | |
| updated_by VARCHAR(36) REFERENCES users(id) ON DELETE SET NULL, | |
| created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, | |
| updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP | |
| ); | |
| ALTER TABLE app_settings | |
| ADD COLUMN IF NOT EXISTS prefer_admin_value BOOLEAN NOT NULL DEFAULT false; | |
| CREATE INDEX IF NOT EXISTS idx_app_settings_updated_by ON app_settings(updated_by); | |