We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e72db commit 12a13a4Copy full SHA for 12a13a4
builder/store/database/in_mem_db.go
@@ -97,6 +97,20 @@ func createIndexes(ctx context.Context, db *bun.DB) error {
97
Index("idx_workflow_user_uuid").
98
Column("username", "task_id").
99
Exec(ctx)
100
- return err
+ if err != nil {
101
+ return err
102
+ }
103
104
+ _, err = db.NewCreateIndex().
105
+ Model((*KnativeServiceRevision)(nil)).
106
+ Index("idx_knative_service_revision_revision_name").
107
+ Unique().
108
+ Column("commit_id").
109
+ Column("svc_name").
110
+ IfNotExists().
111
+ Exec(ctx)
112
113
114
115
+ return nil
116
}
0 commit comments