-- 154_scenario_flags_ssot.down — t-paliad-331 / m/paliad#149 Phase 2 P0
--
-- Best-effort rollback of mig 154. Drops the catalog table and the
-- jsonb SSoT column. Any scenario state that downstream slices have
-- already written is lost — this is by design: down migs are operator
-- recovery, not a feature toggle.

BEGIN;

SELECT set_config(
    'paliad.audit_reason',
    'mig 154 down: revert scenario_flags SSoT',
    true
);

DROP TABLE IF EXISTS paliad.scenario_flag_catalog;

ALTER TABLE paliad.projects
    DROP COLUMN IF EXISTS scenario_flags;

COMMIT;
