mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 17:57:33 +00:00
fixup! fixup! Merge branch 'main' into fix_adding_org_same_id_twice
This commit is contained in:
@@ -88,7 +88,7 @@ func (mig *AddIDUniqueConstraintsForOrgs) Execute(ctx context.Context, _ eventst
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*AddIDUniqueConstraintsForOrgs) String() string {
|
func (*AddIDUniqueConstraintsForOrgs) String() string {
|
||||||
return "60_add_id_unique_constraints_for_orgs"
|
return "61_add_id_unique_constraints_for_orgs"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *AddIDUniqueConstraintsForOrgs) Check(lastRun map[string]interface{}) bool {
|
func (f *AddIDUniqueConstraintsForOrgs) Check(lastRun map[string]interface{}) bool {
|
@@ -156,6 +156,7 @@ type Steps struct {
|
|||||||
s57CreateResourceCounts *CreateResourceCounts
|
s57CreateResourceCounts *CreateResourceCounts
|
||||||
s58ReplaceLoginNames3View *ReplaceLoginNames3View
|
s58ReplaceLoginNames3View *ReplaceLoginNames3View
|
||||||
s59SetupWebkeys *SetupWebkeys
|
s59SetupWebkeys *SetupWebkeys
|
||||||
|
s61AddUIDniqueConstraintsForOrgs *AddIDUniqueConstraintsForOrgs
|
||||||
}
|
}
|
||||||
|
|
||||||
func MustNewSteps(v *viper.Viper) *Steps {
|
func MustNewSteps(v *viper.Viper) *Steps {
|
||||||
|
@@ -217,7 +217,7 @@ func Setup(ctx context.Context, config *Config, steps *Steps, masterKey string)
|
|||||||
steps.s56IDPTemplate6SAMLFederatedLogout = &IDPTemplate6SAMLFederatedLogout{dbClient: dbClient}
|
steps.s56IDPTemplate6SAMLFederatedLogout = &IDPTemplate6SAMLFederatedLogout{dbClient: dbClient}
|
||||||
steps.s57CreateResourceCounts = &CreateResourceCounts{dbClient: dbClient}
|
steps.s57CreateResourceCounts = &CreateResourceCounts{dbClient: dbClient}
|
||||||
steps.s58ReplaceLoginNames3View = &ReplaceLoginNames3View{dbClient: dbClient}
|
steps.s58ReplaceLoginNames3View = &ReplaceLoginNames3View{dbClient: dbClient}
|
||||||
steps.s60AddUIDniqueConstraintsForOrgs = &AddIDUniqueConstraintsForOrgs{eventstore: eventstoreClient, dbClient: dbClient}
|
steps.s61AddUIDniqueConstraintsForOrgs = &AddIDUniqueConstraintsForOrgs{eventstore: eventstoreClient, dbClient: dbClient}
|
||||||
|
|
||||||
err = projection.Create(ctx, dbClient, eventstoreClient, config.Projections, nil, nil, nil)
|
err = projection.Create(ctx, dbClient, eventstoreClient, config.Projections, nil, nil, nil)
|
||||||
logging.OnError(err).Fatal("unable to start projections")
|
logging.OnError(err).Fatal("unable to start projections")
|
||||||
@@ -265,7 +265,7 @@ func Setup(ctx context.Context, config *Config, steps *Steps, masterKey string)
|
|||||||
steps.s56IDPTemplate6SAMLFederatedLogout,
|
steps.s56IDPTemplate6SAMLFederatedLogout,
|
||||||
steps.s57CreateResourceCounts,
|
steps.s57CreateResourceCounts,
|
||||||
steps.s58ReplaceLoginNames3View,
|
steps.s58ReplaceLoginNames3View,
|
||||||
steps.s60AddUIDniqueConstraintsForOrgs,
|
steps.s61AddUIDniqueConstraintsForOrgs,
|
||||||
} {
|
} {
|
||||||
setupErr = executeMigration(ctx, eventstoreClient, step, "migration failed")
|
setupErr = executeMigration(ctx, eventstoreClient, step, "migration failed")
|
||||||
if setupErr != nil {
|
if setupErr != nil {
|
||||||
|
Reference in New Issue
Block a user