Files
evig/scripts
GandClaude Opus 4.8 0c10de727b fix(db): ensure workshop_instances.current_participants exists (migration 106) (#192)
Found during P1 E2E testing of the paid-workshop flow. The paid-registration path
and the payment webhook read/increment `workshop_instances.current_participants`
for capacity checks, but that column was created by the legacy cms-api migration
system and is NOT in any scripts/db/migrations/ file — so a migration-built DB
(including prod) can lack it, which would 500 the paid-registration INSERT the
moment Payrexx goes live. (The dev DB was indeed missing it.)

Idempotent: ADD COLUMN IF NOT EXISTS + backfill from confirmed registrations.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 16:19:34 +02:00
..