fix: make fifo migrations order-safe for fresh setup

This commit is contained in:
M1 AIR
2026-03-08 19:53:24 +07:00
parent 83650d4486
commit 1c5b013b9f
8 changed files with 457 additions and 435 deletions
@@ -1,13 +1,5 @@
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';
-- no-op: moved to 20260306090011_disable_chickin_fifo_consumption_after_core.down.sql
COMMIT;