2024-03-20 15:51:26 +00:00
|
|
|
package setup
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
_ "embed"
|
|
|
|
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
//go:embed 25.sql
|
|
|
|
addLowerFieldsToVerifiedEmail string
|
|
|
|
)
|
|
|
|
|
2024-03-28 06:21:21 +00:00
|
|
|
type User11AddLowerFieldsToVerifiedEmail struct {
|
2024-03-20 15:51:26 +00:00
|
|
|
dbClient *database.DB
|
|
|
|
}
|
|
|
|
|
2024-03-28 06:21:21 +00:00
|
|
|
func (mig *User11AddLowerFieldsToVerifiedEmail) Execute(ctx context.Context, _ eventstore.Event) error {
|
2024-03-20 15:51:26 +00:00
|
|
|
_, err := mig.dbClient.ExecContext(ctx, addLowerFieldsToVerifiedEmail)
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2024-03-28 06:21:21 +00:00
|
|
|
func (mig *User11AddLowerFieldsToVerifiedEmail) String() string {
|
2024-06-18 11:27:44 +00:00
|
|
|
return "25_user13_add_lower_fields_to_verified_email"
|
2024-03-20 15:51:26 +00:00
|
|
|
}
|