-- Revert mig 098 — restore the with_po condition_expr (mig 095 shape).
-- audit_reason required: set via SET LOCAL paliad.audit_reason in tooling.

UPDATE paliad.deadline_rules dr
   SET condition_expr = '{"flag":"with_po"}'::jsonb
  FROM paliad.proceeding_types pt
 WHERE dr.proceeding_type_id = pt.id
   AND pt.code IN ('upc.inf.cfi', 'upc.rev.cfi')
   AND dr.rule_code = 'RoP.019.1'
   AND dr.condition_expr IS NULL;
