mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-02 13:02:19 +00:00

# 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 <27845747+adlerhurst@users.noreply.github.com>
28 lines
520 B
Go
28 lines
520 B
Go
package setup
|
|
|
|
import (
|
|
"context"
|
|
_ "embed"
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
)
|
|
|
|
var (
|
|
//go:embed 52.sql
|
|
renameTableIfNotExisting string
|
|
)
|
|
|
|
type IDPTemplate6LDAP2 struct {
|
|
dbClient *database.DB
|
|
}
|
|
|
|
func (mig *IDPTemplate6LDAP2) Execute(ctx context.Context, _ eventstore.Event) error {
|
|
_, err := mig.dbClient.ExecContext(ctx, renameTableIfNotExisting)
|
|
return err
|
|
}
|
|
|
|
func (mig *IDPTemplate6LDAP2) String() string {
|
|
return "52_idp_templates6_ldap2"
|
|
}
|