mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 23:31:12 -05:00
feat: Add track material column and filtering
This commit is contained in:
@@ -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