-- Case-insensitive search key for track titles, computed in Go like the artist -- and album keys (SQL lower() folds different characters on SQLite and PostgreSQL). ALTER TABLE tracks ADD COLUMN title_key TEXT NOT NULL DEFAULT ''; -- Best effort for existing rows; RefreshMatchKeys corrects them at startup. UPDATE tracks SET title_key = lower(title);