mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
94116fa04b
* fix(storage): add indexes for `auth.tokens` * refactor: naming
26 lines
387 B
Go
26 lines
387 B
Go
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"
|
|
}
|