From a6aeab80d4ac2e29dd957673312bc1a2e40e99b2 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Thu, 16 Apr 2026 08:22:01 +0200 Subject: [PATCH] feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable --- .../091_personal_equipment_configurable_zustand.sql | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/database/migrations/091_personal_equipment_configurable_zustand.sql b/backend/src/database/migrations/091_personal_equipment_configurable_zustand.sql index 7b40101..be92838 100644 --- a/backend/src/database/migrations/091_personal_equipment_configurable_zustand.sql +++ b/backend/src/database/migrations/091_personal_equipment_configurable_zustand.sql @@ -7,11 +7,9 @@ ALTER TABLE persoenliche_ausruestung DROP CONSTRAINT IF EXISTS persoenliche_ausruestung_zustand_check; -- 2. Seed default zustand options into app_settings -INSERT INTO app_settings (key, value, updated_by, updated_at) +INSERT INTO app_settings (key, value) VALUES ( 'personal_equipment_zustand_options', - '[{"key":"gut","label":"Gut","color":"success"},{"key":"beschaedigt","label":"Beschädigt","color":"warning"},{"key":"abgaengig","label":"Abgängig","color":"error"},{"key":"verloren","label":"Verloren","color":"default"}]', - 'system', - NOW() + '[{"key":"gut","label":"Gut","color":"success"},{"key":"beschaedigt","label":"Beschädigt","color":"warning"},{"key":"abgaengig","label":"Abgängig","color":"error"},{"key":"verloren","label":"Verloren","color":"default"}]' ) ON CONFLICT (key) DO NOTHING;