BEGIN;

-- Restore CHICKIN route if rollback is required.
-- NOTE: released PROJECT_CHICKIN allocations are not restored by this down migration.
UPDATE fifo_stock_v2_route_rules
SET is_active = TRUE,
    updated_at = NOW()
WHERE flag_group_code = 'AYAM'
  AND lane = 'USABLE'
  AND function_code = 'CHICKIN_OUT'
  AND source_table = 'project_chickins';

COMMIT;
