fix(eventstore): new column to test clock_timestamp()

This commit is contained in:
adlerhurst
2023-05-11 10:04:35 +02:00
parent 35a0977663
commit c6d29fc201
8 changed files with 34 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
package setup
import (
"context"
_ "embed"
"github.com/zitadel/zitadel/internal/database"
)
var (
//go:embed 11.sql
addEventCreatedAt string
)
type AddEventCreatedAt struct {
dbClient *database.DB
}
func (mig *AddEventCreatedAt) Execute(ctx context.Context) error {
_, err := mig.dbClient.ExecContext(ctx, addEventCreatedAt)
return err
}
func (mig *AddEventCreatedAt) String() string {
return "11_event_created_at"
}