Commit e858de1
fix(intent): mirror 'expired' status predicate in roux_ingest ON CONFLICT (#117)
PR #115 / migration 0018 added `AND status <> 'expired'` to the partial
unique index `cc_intents_roux_ingest_message_id_uidx` but did not update
the upsert's ON CONFLICT WHERE clause in createRouxIngestIntentIdempotent.
PostgreSQL requires predicate equality to match an index to ON CONFLICT —
the mismatch caused the upsert to fail with "no unique or exclusion
constraint matching the ON CONFLICT specification", breaking the Roux
ingest path. Verified against a fresh Neon branch:
- pre-fix: SQLSTATE 42P10 (no matching constraint)
- post-fix: ON CONFLICT resolves cleanly to the index
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 16db06f commit e858de1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
0 commit comments