about summary refs log blame commit diff
path: root/web/panettone/src/migrations/3920286378-add-issue-tsv.lisp
blob: 2a965a7bba80f87240d17be71d25ccf55543fcf8 (plain) (tree)
1
2
3
4
5




                                                                                                                                  
"Add tsvector for full-text search of issues"

(defun up ()
  (query "ALTER TABLE issues ADD COLUMN tsv tsvector GENERATED ALWAYS AS (to_tsvector('english', subject || ' ' || body)) STORED")
  (query "CREATE INDEX issues_tsv_index ON issues USING GIN (tsv);"))