feat: update version to 0.7.8 and enhance exercise variant handling
- 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:
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;
|
||||
Reference in new issue
Block a user