Drop unused thread_id from questions

This commit is contained in:
Ian Gulliver
2026-10-20 20:46:45 -07:00
parent 6ec3cafde5
commit e5a7fc4c1a
7 changed files with 319 additions and 339 deletions
@@ -0,0 +1,4 @@
ALTER TABLE inbox_items DROP COLUMN thread_id;
UPDATE events SET payload = json_remove(payload, '$.thread_id')
WHERE kind IN ('inbox.created', 'inbox.updated') AND json_type(payload, '$.thread_id') IS NOT NULL;