Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
370 B
MySQL
Raw Normal View History

-- Add displayName virtual column to glossary_term_entity for efficient search
ALTER TABLE glossary_term_entity ADD COLUMN IF NOT EXISTS displayName VARCHAR(256) GENERATED ALWAYS AS (json ->> 'displayName') STORED;
-- Create index on displayName for efficient LIKE queries
CREATE INDEX IF NOT EXISTS idx_glossary_term_displayName ON glossary_term_entity (displayName);