fix: rename idp_templates6_ldap3 to ldap2 if necessary (#9565)

# Which Problems Are Solved

Zitadel setup with v2.71.0 could result in errors regarding the
idp_templates6_ldap3 subtable.

# How the Problems Are Solved

Rename the subtable idp_templates6_ldap3 to idp_templates6_ldap2 if no
idp_templates6_ldap2 is existing and rename column `rootCA` to
`root_ca`.

# Additional Changes

None

# Additional Context

Related PR #9292

---------

Co-authored-by: Silvan <[email protected]>
This commit is contained in:
Stefan Benz
2025-03-26 19:26:16 +00:00
committed by GitHub
co-authored by Silvan
parent 0e10ed0e0b
commit 6b23c33cb6
4 changed files with 32 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE IF EXISTS projections.idp_templates6_ldap3 RENAME COLUMN rootCA TO root_ca;
ALTER TABLE IF EXISTS projections.idp_templates6_ldap3 RENAME TO idp_templates6_ldap2;