mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 09:31:12 -05:00
feat: Add track material column and filtering
This commit is contained in:
@@ -20,7 +20,7 @@ const RIDE_FIELDS = [
|
||||
'capacity_per_hour', 'duration_seconds', 'max_speed_kmh',
|
||||
'max_height_meters', 'length_meters', 'inversions',
|
||||
'ride_sub_type', 'coaster_type', 'seating_type', 'intensity_level',
|
||||
'drop_height_meters', 'max_g_force', 'image_url',
|
||||
'track_material', 'drop_height_meters', 'max_g_force', 'image_url',
|
||||
'banner_image_url', 'banner_image_id', 'card_image_url', 'card_image_id'
|
||||
];
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
-- Add track_material column to rides table
|
||||
ALTER TABLE rides
|
||||
ADD COLUMN track_material text;
|
||||
|
||||
COMMENT ON COLUMN rides.track_material IS 'Material used for the ride track (wood, steel, hybrid, aluminum, etc.)';
|
||||
|
||||
-- Add track_material to ride_versions table for version tracking
|
||||
ALTER TABLE ride_versions
|
||||
ADD COLUMN track_material text;
|
||||
|
||||
-- Add track_material to ride_submissions table
|
||||
ALTER TABLE ride_submissions
|
||||
ADD COLUMN track_material text;
|
||||
|
||||
-- Create an index for filtering
|
||||
CREATE INDEX idx_rides_track_material ON rides(track_material)
|
||||
WHERE track_material IS NOT NULL;
|
||||
Reference in New Issue
Block a user