e3b2de5aa2
PostgreSQL does not support IF NOT EXISTS for ADD CONSTRAINT. Use PL/pgSQL DO blocks to guard constraint creation idempotently instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>