mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-26 03:30:51 +00:00

# Which Problems Are Solved This was left out as part of https://github.com/zitadel/zitadel/pull/9292 - Closes https://github.com/zitadel/zitadel/issues/9514 --------- Co-authored-by: Iraq Jaber <IraqJaber@gmail.com>
28 lines
499 B
Go
28 lines
499 B
Go
package setup
|
|
|
|
import (
|
|
"context"
|
|
_ "embed"
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
)
|
|
|
|
var (
|
|
//go:embed 51.sql
|
|
addRootCA string
|
|
)
|
|
|
|
type IDPTemplate6RootCA struct {
|
|
dbClient *database.DB
|
|
}
|
|
|
|
func (mig *IDPTemplate6RootCA) Execute(ctx context.Context, _ eventstore.Event) error {
|
|
_, err := mig.dbClient.ExecContext(ctx, addRootCA)
|
|
return err
|
|
}
|
|
|
|
func (mig *IDPTemplate6RootCA) String() string {
|
|
return "51_idp_templates6_add_root_ca"
|
|
}
|