- Incremented application version to 0.7.4 and updated database schema version to 20260427027. - Enhanced maturity model context bindings to support new filtering options for training styles. - Introduced new API endpoints for importing and exporting maturity model bundles. - Updated frontend components to include a matrix view and improved admin UI for managing maturity models. - Documented changes in the changelog for version 0.7.4, detailing new features and improvements.
18 lines
902 B
SQL
18 lines
902 B
SQL
-- Migration 027: Kontext-Bindings – Fokus + Trainingsstil ohne Stilrichtung (z. B. Karate + Breitensport)
|
||
-- Ersetzt die alte CHECK-Constraint-Kette; partielle Unique-Indizes für alle vier Kombinationen.
|
||
-- Datum: 2026-04-27
|
||
|
||
ALTER TABLE maturity_model_context_bindings DROP CONSTRAINT IF EXISTS chk_mcb_tier;
|
||
|
||
DROP INDEX IF EXISTS uq_mmcb_focus_style_ttype;
|
||
|
||
-- Fokus + Stilrichtung + Trainingsstil (alle drei gesetzt)
|
||
CREATE UNIQUE INDEX IF NOT EXISTS uq_mmcb_focus_style_training
|
||
ON maturity_model_context_bindings (focus_area_id, style_direction_id, training_type_id)
|
||
WHERE style_direction_id IS NOT NULL AND training_type_id IS NOT NULL;
|
||
|
||
-- Fokus + Trainingsstil (ohne Stilrichtung)
|
||
CREATE UNIQUE INDEX IF NOT EXISTS uq_mmcb_focus_training
|
||
ON maturity_model_context_bindings (focus_area_id, training_type_id)
|
||
WHERE style_direction_id IS NULL AND training_type_id IS NOT NULL;
|