Creating a protocol from an audio recording failed on prod: migration 027b
used ADD COLUMN IF NOT EXISTS ... CHECK, which silently skips the CHECK when
the column already exists — so the stale input_method value list (without
'audio') survived and rejected every valid audio insert.
Migration 134 guarantees the input_method column exists and drops all CHECK
constraints on meeting_protocols + protocol_action_links by catalog lookup.
All of them are hand-synced enum lists already validated at the write
boundary via zod schemas derived from src/config/protocols.ts — same policy
as migration 110 (notifications). Verified by replaying both the fresh-from-
zero and the drifted-prod state in a throwaway Postgres 16.
Create form (/admin/protocols/new) noise reduction:
- Open-source fallback tools (CaptureAlternatives) move out of the middle of
the hero card to a collapsed disclosure at the page bottom — reference
material, not part of the flow.
- Hero hierarchy now matches usage: drop zone first, record button with its
consent checkbox beside it, notes textarea last; the filler "oder / Datei
hochladen ↓" spans are gone.
- Submit is a plain action row instead of a third card; the format/char-count
meta line only renders once there is text.
Claude-Session: https://claude.ai/code/session_01QXEBWjhBB9JYsgLSX4jNES
Co-authored-by: Georgy Butaev <georgy.butaev@revamp-it.ch>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>