feat(16-01): apply Group.internalName/ldapObjectGuid migration to local DB

- Migration 20260806133916_add_group_internal_name_and_object_guid applied
  against the local Postgres container (baselined 24 prior migrations first
  — _prisma_migrations was missing, unrelated to this task's DDL)
- New describe block in migration-sql.spec.ts pins internalName,
  ldapObjectGuid, and the (tenantId, ldapObjectGuid) unique index
- Full API test suite green (40 files, 526 tests)
This commit is contained in:
2026-08-06 15:43:19 +02:00
parent 3523e43a13
commit 626e29659d
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,16 @@
-- D-04: internalName (vom Sync nie berührt, überschreibt die Anzeige wenn
-- gesetzt) und ldapObjectGuid (hex-kodierter objectGUID, rename-stabiler
-- Sync-Match-Key; ldapDn bleibt Anzeige-/Debug-Feld) auf Group. Beide
-- Spalten sind nullable, kein Datenverlust beim Anlegen. Der Unique-Index
-- folgt demselben NULL-ist-distinct-Muster wie Group_tenantId_ldapDn_key.
--
-- Keine eigene RLS-Anweisung: Group traegt die entsprechende Absicherung
-- bereits aus 20260804130918_groups_rls_policies; die Policy ist
-- spaltenunabhaengig und greift auf neue Spalten automatisch.
-- AlterTable
ALTER TABLE "Group" ADD COLUMN "internalName" TEXT,
ADD COLUMN "ldapObjectGuid" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "Group_tenantId_ldapObjectGuid_key" ON "Group"("tenantId", "ldapObjectGuid");