-- Reverse t-paliad-161 — drop the inline-Paliadin migration.

DROP INDEX IF EXISTS paliad.approval_requests_agent_turn_idx;

ALTER TABLE paliad.approval_requests
    DROP CONSTRAINT IF EXISTS approval_requests_agent_xor,
    DROP CONSTRAINT IF EXISTS approval_requests_agent_turn_fk,
    DROP CONSTRAINT IF EXISTS approval_requests_requester_kind_check;

ALTER TABLE paliad.approval_requests
    DROP COLUMN IF EXISTS agent_turn_id,
    DROP COLUMN IF EXISTS requester_kind;

ALTER TABLE paliad.paliadin_turns
    DROP COLUMN IF EXISTS context;
