diff --git a/system1-factory/api/db/migrations/20260331_fix_deduct_days_precision.sql b/system1-factory/api/db/migrations/20260331_fix_deduct_days_precision.sql index 750f712..37bf5b9 100644 --- a/system1-factory/api/db/migrations/20260331_fix_deduct_days_precision.sql +++ b/system1-factory/api/db/migrations/20260331_fix_deduct_days_precision.sql @@ -1,4 +1,4 @@ -- vacation_types.deduct_days 정밀도 수정: DECIMAL(3,1) → DECIMAL(4,2) -- 0.25(반반차)가 0.3으로 반올림되는 문제 해결 ALTER TABLE vacation_types MODIFY deduct_days DECIMAL(4,2) DEFAULT 1.00; -UPDATE vacation_types SET deduct_days = 0.25 WHERE deduct_days = 0.3 AND type_name = '반반차'; +UPDATE vacation_types SET deduct_days = 0.25 WHERE type_code = 'ANNUAL_QUARTER';