-- t-paliad-183 down — reverts the priority flips written by -- 083_backfill_priority.up.sql. -- -- "Revert" here means: restore the post-Slice-1 column default -- ('mandatory' on every row). Mig 078 created the column with that -- default; post-Slice-1 every row was 'mandatory' regardless of its -- (is_mandatory, is_optional) pair. Resetting to 'mandatory' is -- therefore equivalent to "undo the backfill". SELECT set_config( 'paliad.audit_reason', 'rollback 083: reset priority to mig 078 default (mandatory)', true); UPDATE paliad.deadline_rules SET priority = 'mandatory' WHERE priority <> 'mandatory';