mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 18:44:40 +00:00
28 lines
499 B
Go
28 lines
499 B
Go
|
package setup
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
_ "embed"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/database"
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
//go:embed 32.sql
|
||
|
addAuthSessionID string
|
||
|
)
|
||
|
|
||
|
type AddAuthSessionID struct {
|
||
|
dbClient *database.DB
|
||
|
}
|
||
|
|
||
|
func (mig *AddAuthSessionID) Execute(ctx context.Context, _ eventstore.Event) error {
|
||
|
_, err := mig.dbClient.ExecContext(ctx, addAuthSessionID)
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
func (mig *AddAuthSessionID) String() string {
|
||
|
return "32_add_auth_sessionID"
|
||
|
}
|