BEGIN;

UPDATE fifo_stock_v2_route_rules
SET
    is_active = FALSE,
    updated_at = NOW()
WHERE flag_group_code = 'AYAM'
  AND lane = 'STOCKABLE'
  AND function_code = 'POPULATION_IN'
  AND source_table = 'project_flock_populations'
  AND legacy_type_key = 'PROJECT_FLOCK_POPULATION';

UPDATE fifo_stock_v2_traits
SET is_active = FALSE
WHERE source_table = 'project_flock_populations'
  AND lane = 'STOCKABLE';

COMMIT;
