zitadel/cmd/setup/08.go

26 lines
387 B
Go
Raw Normal View History

package setup
import (
"context"
"database/sql"
_ "embed"
)
var (
//go:embed 08.sql
tokenIndexes08 string
)
type AuthTokenIndexes struct {
dbClient *sql.DB
}
func (mig *AuthTokenIndexes) Execute(ctx context.Context) error {
_, err := mig.dbClient.ExecContext(ctx, tokenIndexes08)
return err
}
func (mig *AuthTokenIndexes) String() string {
return "08_auth_token_indexes"
}