From 6c3d7f1a5c522c2d18704da9054be42b21bcde0f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 02:23:21 +0000 Subject: [PATCH] Fix: Remove duplicate indexes --- ...310_c73b02c9-5de4-404d-90ce-1b207ed4456a.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 supabase/migrations/20251029022310_c73b02c9-5de4-404d-90ce-1b207ed4456a.sql diff --git a/supabase/migrations/20251029022310_c73b02c9-5de4-404d-90ce-1b207ed4456a.sql b/supabase/migrations/20251029022310_c73b02c9-5de4-404d-90ce-1b207ed4456a.sql new file mode 100644 index 00000000..643704e1 --- /dev/null +++ b/supabase/migrations/20251029022310_c73b02c9-5de4-404d-90ce-1b207ed4456a.sql @@ -0,0 +1,17 @@ +-- Phase 8: Remove Duplicate Indexes +-- All duplicate indexes verified as identical via pg_indexes + +-- 1. content_submissions: Keep newer lock management index (idx_content_submissions_locks) +DROP INDEX IF EXISTS public.idx_submissions_assigned; + +-- 2. parks: Keep original park_type index (idx_parks_park_type) +DROP INDEX IF EXISTS public.idx_parks_type; + +-- 3. photo_submissions: Keep more descriptive name (idx_photo_submissions_submission_id) +DROP INDEX IF EXISTS public.idx_photo_submissions_submission; + +-- 4. ride_model_technical_specifications: Keep full name (idx_ride_model_technical_specs_search) +DROP INDEX IF EXISTS public.idx_ride_model_tech_specs_search; + +-- 5. ride_technical_specifications: Keep full name (idx_ride_technical_specs_search) +DROP INDEX IF EXISTS public.idx_ride_tech_specs_search; \ No newline at end of file