Files
multica/server/migrations/199_agent_task_attribution_legacy_exemption_remove.up.sql
Multica Eve d74aed1e07 MUL-4302 Remove legacy attribution invariant exemption (#5504)
* fix(attribution): remove legacy invariant exemption

Co-authored-by: multica-agent <github@multica.ai>

* test(attribution): enforce strict legacy row rejection

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Eve <eve@multica-ai.local>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-16 11:21:20 +08:00

11 lines
553 B
SQL

-- The strict shadow constraint is validated, so migration 190's transitional
-- originator_source IS NULL exemption can now be removed. Both statements are
-- sent in one migration query and therefore commit atomically: readers never
-- observe the table without either constraint in place.
ALTER TABLE agent_task_queue
DROP CONSTRAINT agent_task_queue_accountable_matches_originator;
ALTER TABLE agent_task_queue
RENAME CONSTRAINT agent_task_queue_accountable_matches_originator_strict
TO agent_task_queue_accountable_matches_originator;