-- Migration: Add FULLTEXT index on ticket title and description
-- Replaces LIKE '%term%' with MATCH ... AGAINST for dramatically better search
-- performance and relevance ranking at scale.
-- MyISAM not needed — InnoDB supports FULLTEXT since MySQL 5.6.

ALTER TABLE tickets ADD FULLTEXT INDEX ft_title_description (title, description);
