feat: update version to 0.7.8 and enhance exercise variant handling
Deploy Development / deploy (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 5s
Test Suite / playwright-tests (push) Failing after 1m57s

- Incremented application version to 0.7.8 and updated database schema version to 20260427030.
- Added support for including exercise variants in the exercise listing API, improving training planning capabilities.
- Enhanced training unit creation and update logic to validate exercise variant IDs, ensuring proper associations.
- Updated frontend components to support exercise variant selection, improving user experience in training planning.
This commit is contained in:
Lars committed 2026-04-28 09:30:33 +02:00
1 parent 2c831d6cea
commit cf9f95377c
6 files changed
+190 -39

No files matched your search

@@ -0,0 +1,9 @@
-- Migration 030: Übungsvariante in geplanten Trainingseinheiten
-- Nullable FK: keine Variante = Stammübung; bei Löschen der Variante bleibt die Zuordnung zur Übung erhalten
ALTER TABLE training_unit_exercises
ADD COLUMN IF NOT EXISTS exercise_variant_id INT REFERENCES exercise_variants(id) ON DELETE SET NULL;
CREATE INDEX IF NOT EXISTS idx_training_unit_exercises_variant
ON training_unit_exercises(exercise_variant_id)
WHERE exercise_variant_id IS NOT NULL;