Files
msolarczekandClaude Opus 5 c8e6f30a27
CI / build-and-check (push) Canceled after 0s
CI / audit (push) Canceled after 0s
CI / sbom (push) Canceled after 0s
Basis: Certvia dev@a48c5fb als Fundament für Craftvia
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>
2026-09-14 11:05:39 +02:00

21 lines
1.0 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ============================================================================
-- Contract-Migration (Option C) — ungenutzte Auth-Spalten von `users` entfernen
-- ============================================================================
-- Abschluss des Expand/Contract-Umbaus: Passwort/MFA/Kill-Switch/Lockout leben seit
-- WS1–WS4b ausschließlich an der GLOBALEN `Identity`. Die per-Mandant-Zeile `users`
-- ist reine Mitgliedschaft — ihre früheren (Legacy-)Auth-Spalten werden hier entfernt.
-- Nach WS1–WS4b referenziert kein Code diese Spalten mehr (durch tsc verifiziert).
-- DROP COLUMN läuft auch auf gefüllten Tabellen (kein Reset nötig).
-- ============================================================================
ALTER TABLE "users" DROP COLUMN "failed_logins",
DROP COLUMN "is_platform_admin",
DROP COLUMN "last_totp_step",
DROP COLUMN "locked_until",
DROP COLUMN "mfa_enrolled_at",
DROP COLUMN "mfa_secret",
DROP COLUMN "must_change_password",
DROP COLUMN "password_hash",
DROP COLUMN "recovery_codes",
DROP COLUMN "sessions_valid_after";