Basis: Certvia dev@a48c5fb als Fundament für Craftvia
CI / build-and-check (push) Canceled after 0s
CI / audit (push) Canceled after 0s
CI / sbom (push) Canceled after 0s

Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation
und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-14 11:05:39 +02:00
co-authored by Claude Opus 5
commit c8e6f30a27
720 changed files with 140143 additions and 0 deletions
@@ -0,0 +1,18 @@
-- TISAX M1: Onboarding-Step-Keys umbenannt (scoping→scope, policies→policy).
-- Bestehende onboarding_progress-Zeilen umschlüsseln, damit der Fortschritt erhalten
-- bleibt (sonst verwaisen die Alt-Keys und die Schritte starten wieder als „offen").
-- NOT EXISTS-Guard gegen die @@unique(tenant_id, step_key): existiert der Ziel-Key
-- bereits, wird nicht umbenannt (die neue Zeile gewinnt).
UPDATE "onboarding_progress" o SET "step_key" = 'scope'
WHERE o."step_key" = 'scoping'
AND NOT EXISTS (
SELECT 1 FROM "onboarding_progress" i
WHERE i."tenant_id" = o."tenant_id" AND i."step_key" = 'scope'
);
UPDATE "onboarding_progress" o SET "step_key" = 'policy'
WHERE o."step_key" = 'policies'
AND NOT EXISTS (
SELECT 1 FROM "onboarding_progress" i
WHERE i."tenant_id" = o."tenant_id" AND i."step_key" = 'policy'
);