Skip to main content

max / makenotwork

566 B · 12 lines History Blame Raw
1 -- Link issues to their Multithreaded forum thread.
2 --
3 -- When an issue is created via Postmark inbound, we spawn an MT thread in
4 -- the project's "issues" category and stash its ID here. Replies via email
5 -- can then look up the MT thread directly without an extra MNW→MT round trip.
6 --
7 -- Nullable: not every issue has a corresponding MT thread (e.g., orphan
8 -- repos with no `project_id`, or MT client not configured at issue-creation
9 -- time). The bridge fails open — missing thread doesn't block the issue.
10
11 ALTER TABLE issues ADD COLUMN mt_thread_id UUID;
12