2024-01-17 11:16:48 +01:00
|
|
|
package setup
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
_ "embed"
|
|
|
|
|
|
|
|
"github.com/zitadel/zitadel/internal/database"
|
2024-01-25 17:28:20 +01:00
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
2024-01-17 11:16:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
//go:embed 21.sql
|
|
|
|
addBlockFieldToLimits string
|
|
|
|
)
|
|
|
|
|
|
|
|
type AddBlockFieldToLimits struct {
|
|
|
|
dbClient *database.DB
|
|
|
|
}
|
|
|
|
|
2024-01-25 17:28:20 +01:00
|
|
|
func (mig *AddBlockFieldToLimits) Execute(ctx context.Context, _ eventstore.Event) error {
|
2024-01-17 11:16:48 +01:00
|
|
|
_, err := mig.dbClient.ExecContext(ctx, addBlockFieldToLimits)
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mig *AddBlockFieldToLimits) String() string {
|
|
|
|
return "21_add_block_field_to_limits"
|
|
|
|
}
|