diff --git a/app/controlplane/pkg/data/ent/schema/workflowrun.go b/app/controlplane/pkg/data/ent/schema/workflowrun.go index 6f2b2a066..ce6cab871 100644 --- a/app/controlplane/pkg/data/ent/schema/workflowrun.go +++ b/app/controlplane/pkg/data/ent/schema/workflowrun.go @@ -48,7 +48,7 @@ func (WorkflowRun) Fields() []ent.Field { field.Text("reason").Optional(), field.String("run_url").Optional(), field.String("runner_type").Optional(), - field.JSON("attestation", &dsse.Envelope{}).Optional().Deprecated("use attestations table instead"), + field.JSON("attestation", &dsse.Envelope{}).Optional(), field.String("attestation_digest").Optional(), field.Bytes("attestation_state").Optional(), // The version of the contract that was used diff --git a/app/controlplane/pkg/data/ent/workflowrun.go b/app/controlplane/pkg/data/ent/workflowrun.go index 0d8ad26a7..f15f7df5a 100644 --- a/app/controlplane/pkg/data/ent/workflowrun.go +++ b/app/controlplane/pkg/data/ent/workflowrun.go @@ -38,8 +38,6 @@ type WorkflowRun struct { // RunnerType holds the value of the "runner_type" field. RunnerType string `json:"runner_type,omitempty"` // Attestation holds the value of the "attestation" field. - // - // Deprecated: Field "attestation" was marked as deprecated in the schema. Attestation *dsse.Envelope `json:"attestation,omitempty"` // AttestationDigest holds the value of the "attestation_digest" field. AttestationDigest string `json:"attestation_digest,omitempty"` diff --git a/app/controlplane/pkg/data/ent/workflowrun/workflowrun.go b/app/controlplane/pkg/data/ent/workflowrun/workflowrun.go index b65bf5878..059cc4621 100644 --- a/app/controlplane/pkg/data/ent/workflowrun/workflowrun.go +++ b/app/controlplane/pkg/data/ent/workflowrun/workflowrun.go @@ -99,6 +99,7 @@ var Columns = []string{ FieldReason, FieldRunURL, FieldRunnerType, + FieldAttestation, FieldAttestationDigest, FieldAttestationState, FieldContractRevisionUsed, @@ -131,11 +132,6 @@ func ValidColumn(column string) bool { return true } } - for _, f := range [...]string{FieldAttestation} { - if column == f { - return true - } - } return false }