2025-05-02 13:40:22 +02:00
|
|
|
package setup
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
_ "embed"
|
|
|
|
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
//go:embed 54.sql
|
|
|
|
instancePositionIndex string
|
|
|
|
)
|
|
|
|
|
|
|
|
type InstancePositionIndex struct {
|
|
|
|
dbClient *database.DB
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mig *InstancePositionIndex) Execute(ctx context.Context, _ eventstore.Event) error {
|
|
|
|
_, err := mig.dbClient.ExecContext(ctx, instancePositionIndex)
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mig *InstancePositionIndex) String() string {
|
2025-05-08 17:13:57 +02:00
|
|
|
return "54_instance_position_index_again"
|
2025-05-02 13:40:22 +02:00
|
|
|
}
|