mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 08:11:08 -05:00
Refactor park submission location handling
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user