mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 07:11:12 -05:00
12 lines
614 B
SQL
12 lines
614 B
SQL
-- Add temporary location storage to park_submissions
|
|
-- This stores location data until approval, when it will be created in locations table
|
|
|
|
ALTER TABLE park_submissions
|
|
ADD COLUMN temp_location_data JSONB;
|
|
|
|
COMMENT ON COLUMN park_submissions.temp_location_data IS
|
|
'Temporary storage for location data before approval. Contains: name, city, state_province, country, latitude, longitude, timezone, postal_code, display_name';
|
|
|
|
-- Add index for querying submissions with temp location data
|
|
CREATE INDEX idx_park_submissions_temp_location ON park_submissions (submission_id)
|
|
WHERE temp_location_data IS NOT NULL; |