fix: Migration 027 constraint violation - health mode sum
Fixed health mode calculation in focus_areas migration. Changed health_pct from 50 to 55 to ensure sum equals 100%. Before: 0+0+10+20+15+50 = 95% (constraint violation) After: 0+0+10+20+15+55 = 100% (valid) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d97925d5a1
commit
80d57918ae
|
|
@ -104,7 +104,7 @@ SELECT
|
||||||
END AS flexibility_pct,
|
END AS flexibility_pct,
|
||||||
|
|
||||||
CASE goal_mode
|
CASE goal_mode
|
||||||
WHEN 'health' THEN 50 ELSE 0
|
WHEN 'health' THEN 55 ELSE 0
|
||||||
END +
|
END +
|
||||||
CASE goal_mode
|
CASE goal_mode
|
||||||
WHEN 'endurance' THEN 20 ELSE 0
|
WHEN 'endurance' THEN 20 ELSE 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user