mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 02:07:24 +00:00

# Which Problems Are Solved The login by email was not possible anymore. This was due to a newly generated user projection because of #9255 . Internal logs showed that the computed lower case column for verified email was missing. # How the Problems Are Solved Update name of setup step 25 to rerun the step, since the underlying sql changed. # Additional Changes None # Additional Context - relates to #9255
28 lines
605 B
Go
28 lines
605 B
Go
package setup
|
|
|
|
import (
|
|
"context"
|
|
_ "embed"
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
)
|
|
|
|
var (
|
|
//go:embed 25.sql
|
|
addLowerFieldsToVerifiedEmail string
|
|
)
|
|
|
|
type User11AddLowerFieldsToVerifiedEmail struct {
|
|
dbClient *database.DB
|
|
}
|
|
|
|
func (mig *User11AddLowerFieldsToVerifiedEmail) Execute(ctx context.Context, _ eventstore.Event) error {
|
|
_, err := mig.dbClient.ExecContext(ctx, addLowerFieldsToVerifiedEmail)
|
|
return err
|
|
}
|
|
|
|
func (mig *User11AddLowerFieldsToVerifiedEmail) String() string {
|
|
return "25_user14_add_lower_fields_to_verified_email"
|
|
}
|