Files
kan/packages/db/migrations/20251001220136_AddFuzzySearchSupport.sql
2025-10-01 23:13:22 +01:00

5 lines
266 B
SQL

CREATE EXTENSION IF NOT EXISTS pg_trgm; --> statement-breakpoint
CREATE INDEX IF NOT EXISTS boards_name_trgm_idx ON board USING gin (name gin_trgm_ops);
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS cards_title_trgm_idx ON card USING gin (title gin_trgm_ops);