Files
ProjectE/drizzle/meta/_journal.json
T
Hermes 2e451093b6 T14/Bug #3 HIGH: Postgres search_vector trigger + backfill
The tasks/notes/projects/habits/domains tables all have a tsvector
search_vector column and a GIN index, but nothing was populating it.
GET /api/search returned zero results for every query.

This migration adds a BEFORE INSERT OR UPDATE trigger on each of the
five searchable tables. The trigger function uses to_tsvector with
the appropriate title + description/content columns and is named
project_e_search_vector_<table>_update. Drops any pre-existing trigger
of the same name so re-running the migration is safe.

Backfills 64 existing rows.

Parent: t_e1cbd87d
2026-08-01 04:15:14 +00:00

48 lines
940 B
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1785317538917,
"tag": "0000_outstanding_zuras",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1785323079216,
"tag": "0001_warm_eternity",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1785324000000,
"tag": "0002_steep_black_widow",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1785325253083,
"tag": "0003_amazing_saracen",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1785455000000,
"tag": "0004_add_owner_id_to_domains",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1785557679802,
"tag": "0005_search_vector_trigger",
"breakpoints": true
}
]
}