COR-04: ldap-feld-migration

SQL-Migrationen fuer LDAP-Kopplungsfelder (ldap_uid, ldap_synced_at,
ldap_source) in user_migration_map und der Tenant-users-Tabelle.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Sonnet 5 committed 2026-10-14 14:30:10 +00:00
1 parent c6f1ed7179
commit c2221a1070
4 files changed
+24

No files matched your search

@@ -0,0 +1,4 @@
ALTER TABLE user_migration_map
DROP COLUMN ldap_uid,
DROP COLUMN ldap_synced_at,
DROP COLUMN ldap_source;
@@ -0,0 +1,9 @@
-- COR-04: LDAP-Kopplungsfelder in der Benutzer-Migrations-Map, erweitert
-- COR-02 (user_migration_map). ldap_uid/ldap_synced_at in archivdms-Tiefe
-- (Zielschema), ldap_source fuer archivmail-Konten mit nur einfachem
-- Quellhinweis -- alle drei nullable, da LDAP-Bezug optional ist und
-- unvollstaendige Angaben die Migration nicht blockieren duerfen.
ALTER TABLE user_migration_map
ADD COLUMN ldap_uid TEXT,
ADD COLUMN ldap_synced_at TIMESTAMPTZ,
ADD COLUMN ldap_source TEXT;
@@ -0,0 +1,4 @@
ALTER TABLE users
DROP COLUMN ldap_uid,
DROP COLUMN ldap_synced_at,
DROP COLUMN ldap_source;
+7
View File
@@ -0,0 +1,7 @@
-- COR-04: LDAP-Kopplungsfelder je Tenant-Benutzer, gleiche Spalten wie
-- user_migration_map (siehe migrations/0023). Nullable: ein Konto ohne
-- LDAP-Bezug oder mit noch unvollstaendigem Sync-Stand bleibt gueltig.
ALTER TABLE users
ADD COLUMN ldap_uid TEXT,
ADD COLUMN ldap_synced_at TIMESTAMPTZ,
ADD COLUMN ldap_source TEXT;