Goalsystem V1 #50

Merged
Lars merged 51 commits from develop into main 2026-03-27 17:40:51 +01:00
2 changed files with 0 additions and 13 deletions
Showing only changes of commit 906a3b7cdd - Show all commits

View File

@ -133,15 +133,3 @@ CREATE INDEX IF NOT EXISTS idx_fitness_tests_date ON fitness_tests(profile_id, t
COMMENT ON TABLE fitness_tests IS 'Standardized fitness tests (Cooper, step test, strength tests, etc.)'; COMMENT ON TABLE fitness_tests IS 'Standardized fitness tests (Cooper, step test, strength tests, etc.)';
COMMENT ON COLUMN fitness_tests.test_type IS 'cooper_12min, step_test, pushups_max, plank_max, flexibility_sit_reach, vo2max_est, strength_1rm_squat, strength_1rm_bench'; COMMENT ON COLUMN fitness_tests.test_type IS 'cooper_12min, step_test, pushups_max, plank_max, flexibility_sit_reach, vo2max_est, strength_1rm_squat, strength_1rm_bench';
COMMENT ON COLUMN fitness_tests.norm_category IS 'Performance category based on age/gender norms'; COMMENT ON COLUMN fitness_tests.norm_category IS 'Performance category based on age/gender norms';
-- ============================================================================
-- VERSION UPDATE
-- ============================================================================
-- Track migration
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM schema_migrations WHERE version = '022') THEN
INSERT INTO schema_migrations (version, applied_at) VALUES ('022', NOW());
END IF;
END $$;

View File

@ -14,7 +14,6 @@ from pydantic import BaseModel
from typing import Optional, List from typing import Optional, List
from datetime import date, datetime, timedelta from datetime import date, datetime, timedelta
from decimal import Decimal from decimal import Decimal
import json
from db import get_db, get_cursor, r2d from db import get_db, get_cursor, r2d
from auth import require_auth from auth import require_auth