Spaces:
Runtime error
Runtime error
Download database/migrations/add_user_profile_fields.sql from Rathesh07/speed_camera_detector: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/Rathesh07/speed_camera_detector/resolve/main/database/migrations/add_user_profile_fields.sql
- Command line
-
hf download hf://spaces/Rathesh07/speed_camera_detector/database/migrations/add_user_profile_fields.sql
-
curl -L -o add_user_profile_fields.sql https://huggingface.co/spaces/Rathesh07/speed_camera_detector/resolve/main/database/migrations/add_user_profile_fields.sql
377 Bytes
| -- Migration: Add profile_photo_url and trips_count to users table | |
| -- Run this SQL script on your PostgreSQL database | |
| ALTER TABLE users ADD COLUMN IF NOT EXISTS profile_photo_url TEXT; | |
| ALTER TABLE users ADD COLUMN IF NOT EXISTS trips_count INTEGER DEFAULT 0; | |
| -- Update existing rows to have trips_count = 0 if NULL | |
| UPDATE users SET trips_count = 0 WHERE trips_count IS NULL; | |