File tree 4 files changed +11
-1
lines changed
app/controlplane/pkg/data/ent
4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ -- Create index "workflowrun_created_at_workflow_workflowruns" to table: "workflow_runs"
2
+ CREATE INDEX "workflowrun_created_at_workflow_workflowruns " ON " workflow_runs" (" created_at" , " workflow_workflowruns" );
Original file line number Diff line number Diff line change 1
- h1:JssL6GSWWxZ/FmPomukKpn65E/hnMXJXaoOdrG5ARnc =
1
+ h1:3t9rfP6n9TkogTDvCGpnZvdVjpgRnb5eeXjA753TFvg =
2
2
20230706165452_init-schema.sql h1:VvqbNFEQnCvUVyj2iDYVQQxDM0+sSXqocpt/5H64k8M=
3
3
20230710111950-cas-backend.sql h1:A8iBuSzZIEbdsv9ipBtscZQuaBp3V5/VMw7eZH6GX+g=
4
4
20230712094107-cas-backends-workflow-runs.sql h1:a5rzxpVGyd56nLRSsKrmCFc9sebg65RWzLghKHh5xvI=
@@ -41,3 +41,4 @@ h1:JssL6GSWWxZ/FmPomukKpn65E/hnMXJXaoOdrG5ARnc=
41
41
20240816140029.sql h1:oz/iOx8gKmhPR8QhXT4t6G2Aun8FZufR/aPQsJHZ7P0=
42
42
20240817110515.sql h1:TpKcnvfG41SUC4rNMQ9YFNuVsDB0A408hCI5qaoRzQo=
43
43
20240819104758.sql h1:bpAwdQakxcXNy5ZfmA/tAzx+lIQBPs2LWs6wk2QCPTw=
44
+ 20240827110459.sql h1:opB+0UvGuYIyi1B3BEyh06HNzon3V867QHsc8yrsTuE=
Original file line number Diff line number Diff line change @@ -493,6 +493,11 @@ var (
493
493
Unique : false ,
494
494
Columns : []* schema.Column {WorkflowRunsColumns [12 ]},
495
495
},
496
+ {
497
+ Name : "workflowrun_created_at_workflow_workflowruns" ,
498
+ Unique : false ,
499
+ Columns : []* schema.Column {WorkflowRunsColumns [1 ], WorkflowRunsColumns [12 ]},
500
+ },
496
501
},
497
502
}
498
503
// ReferrerReferencesColumns holds the columns for the "referrer_references" table.
Original file line number Diff line number Diff line change @@ -79,5 +79,7 @@ func (WorkflowRun) Indexes() []ent.Index {
79
79
index .Fields ("created_at" , "state" ),
80
80
index .Fields ("attestation_digest" ),
81
81
index .Edges ("workflow" ),
82
+ // DailyRun counts
83
+ index .Edges ("workflow" ).Fields ("created_at" ),
82
84
}
83
85
}
You can’t perform that action at this time.
0 commit comments