Skip to content

Commit 50dddad

Browse files
Fotios Tsakiridisclaude
andcommitted
Fix migration to include DROP INDEX command
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c126a17 commit 50dddad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

database/migrations/2.83.3_index_optimization.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
-- Description: Add missing indexes and remove redundant ones for better query performance
44

55
-- ============================================
6-
-- STEP 1: Remove redundant index (if exists)
6+
-- STEP 1: Remove redundant index
77
-- ============================================
88

99
-- projects: idx_code is redundant because UNIQUE KEY `code` already exists
10-
-- Note: Run this separately if needed: DROP INDEX idx_code ON projects;
11-
-- Skipping conditional drop for MySQL compatibility
10+
-- Note: This will error if index doesn't exist - safe to ignore
11+
DROP INDEX idx_code ON projects;
1212

1313
-- ============================================
1414
-- STEP 2: Add CRITICAL indexes (High-volume queries)

0 commit comments

Comments
 (0)