Files
papercrate/backend/migrations/202511300100_add_title_trgm_index/up.sql
T

7 lines
168 B
SQL

CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE INDEX idx_documents_title_trgm
ON tenant.documents
USING gin (title gin_trgm_ops)
WHERE deleted_at IS NULL;