diff --git a/xuqm-bugcollect-service/src/main/resources/db/migration/V4__bugcollect_v12.sql b/xuqm-bugcollect-service/src/main/resources/db/migration/V4__bugcollect_v12.sql index 570411a..0dc080a 100644 --- a/xuqm-bugcollect-service/src/main/resources/db/migration/V4__bugcollect_v12.sql +++ b/xuqm-bugcollect-service/src/main/resources/db/migration/V4__bugcollect_v12.sql @@ -34,7 +34,6 @@ CREATE TABLE IF NOT EXISTS log_sessions ( INDEX idx_ls_started_at (started_at) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; --- Ensure event_id has a uniqueness constraint (was added as NULL in V3) --- Use an index rather than UNIQUE to tolerate legacy NULL rows -ALTER TABLE log_issue_events - ADD INDEX IF NOT EXISTS idx_lie_event_id (event_id); +-- Ensure event_id has an index (was added as NULL in V3) +-- Note: MySQL does not support ALTER TABLE ADD INDEX IF NOT EXISTS +CREATE INDEX idx_lie_event_id ON log_issue_events (event_id);