convoy: reconcile user profile schema missed by initial-schema backfill (reconcile-historical-add-scripts B5) #153
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#153
Loading…
Reference in a new issue
No description provided.
Delete branch "convoy/reconcile-b5-user-profile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Brief 5 of
reconcile-historical-add-scripts. Folds the union of DDL effects fromscripts/add-user-profile-columns.js(#8) andscripts/add-user-profile-fields.js(#9) into a single idempotentnode-pg-migratemigration so a brand-new Neon branch reaches structural parity with prod for the user-profile surface.migrations/1781000000005_reconcile-user-profile.js(pre-assigned timestamp per convoy § Slice dependencies).ADD COLUMN IF NOT EXISTS; both new tables useCREATE TABLE IF NOT EXISTS; every index usesCREATE INDEX IF NOT EXISTS; CHECK constraints are wrapped inDO \$\$ ... EXCEPTION WHEN duplicate_object THEN NULL; END \$\$;blocks (Postgres pre-15 has noADD CONSTRAINT IF NOT EXISTSfor CHECK).Files changed
No other files touched (no scripts edited per no-go-zones; no convoy file edits — B7 owns the as-shipped sweep).
Per-column table (16 ADDs)
Per-index list (6)
Per-CHECK list (6, all wrapped in DO/EXCEPTION blocks)
Tables created (2)
FK shape mirrors initial-schema's `ON DELETE CASCADE` pattern for per-user join tables.
Acceptance criteria
Test plan
Notes for reviewer
Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.