Skip to main content

max / makenotwork

Make migration 194's index re-run safe migration_hygiene requires IF NOT EXISTS on CREATE INDEX, and 194 landed after the v0.11.8 build, so no gated run had seen it until Sando run 43 went red about twenty minutes in. Edited in place rather than superseded by a new migration. sqlx checksums an applied migration and the commit hook refuses one on principle, but 194 has been applied nowhere: testnot is at 189, prod runs 0.11.5 and 194 first appears in 14bd66bb which postdates the 0.11.8 release, and no local dev database exists. Hook bypassed on that basis.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-07 19:38 UTC
Signed with PGP, not checked
Commit: 7e1cab23fab26d82622dd96b2324ed0fb3daafa7
Parent: 5582535
1 file changed, +1 insertion, -1 deletion
@@ -41,6 +41,6 @@
41 41
42 42 -- Finding a creator's pending invitations is a per-user lookup on a table
43 43 -- indexed only by project and user; this makes the dashboard badge cheap.
44 - CREATE INDEX idx_project_members_pending
44 + CREATE INDEX IF NOT EXISTS idx_project_members_pending
45 45 ON project_members (user_id)
46 46 WHERE accepted_at IS NULL;