Skip to content

Commit d5ff588

Browse files
committed
revert ArtifactStateWhileDeployment to ImageStateWhileDeployment
1 parent 03693a4 commit d5ff588

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

internal/sql/repository/pipelineConfig/CdWorfkflowRepository.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -106,28 +106,28 @@ type CdWorkflowRunnerWithExtraFields struct {
106106
}
107107

108108
type CdWorkflowRunner struct {
109-
tableName struct{} `sql:"cd_workflow_runner" pg:",discard_unknown_columns"`
110-
Id int `sql:"id,pk"`
111-
Name string `sql:"name"`
112-
WorkflowType apiBean.WorkflowType `sql:"workflow_type"` // pre,post,deploy
113-
ExecutorType cdWorkflow.WorkflowExecutorType `sql:"executor_type"` // awf, system
114-
Status string `sql:"status"`
115-
PodStatus string `sql:"pod_status"`
116-
Message string `sql:"message"`
117-
StartedOn time.Time `sql:"started_on"`
118-
FinishedOn time.Time `sql:"finished_on"`
119-
Namespace string `sql:"namespace"`
120-
LogLocation string `sql:"log_file_path"`
121-
CdArtifactLocation string `sql:"cd_artifact_location"`
122-
IsArtifactUploaded workflow.ArtifactUploadedType `sql:"is_artifact_uploaded"`
123-
TriggeredBy int32 `sql:"triggered_by"`
124-
CdWorkflowId int `sql:"cd_workflow_id"`
125-
PodName string `sql:"pod_name"`
126-
BlobStorageEnabled bool `sql:"blob_storage_enabled,notnull"`
127-
RefCdWorkflowRunnerId int `sql:"ref_cd_workflow_runner_id,notnull"`
128-
ImagePathReservationIds []int `sql:"image_path_reservation_ids" pg:",array,notnull"`
129-
ReferenceId *string `sql:"reference_id"`
130-
ArtifactState constants.ArtifactStateWhileDeployment `sql:"artifact_state"` // artifact_state currently not utilized in oss
109+
tableName struct{} `sql:"cd_workflow_runner" pg:",discard_unknown_columns"`
110+
Id int `sql:"id,pk"`
111+
Name string `sql:"name"`
112+
WorkflowType apiBean.WorkflowType `sql:"workflow_type"` // pre,post,deploy
113+
ExecutorType cdWorkflow.WorkflowExecutorType `sql:"executor_type"` // awf, system
114+
Status string `sql:"status"`
115+
PodStatus string `sql:"pod_status"`
116+
Message string `sql:"message"`
117+
StartedOn time.Time `sql:"started_on"`
118+
FinishedOn time.Time `sql:"finished_on"`
119+
Namespace string `sql:"namespace"`
120+
LogLocation string `sql:"log_file_path"`
121+
CdArtifactLocation string `sql:"cd_artifact_location"`
122+
IsArtifactUploaded workflow.ArtifactUploadedType `sql:"is_artifact_uploaded"`
123+
TriggeredBy int32 `sql:"triggered_by"`
124+
CdWorkflowId int `sql:"cd_workflow_id"`
125+
PodName string `sql:"pod_name"`
126+
BlobStorageEnabled bool `sql:"blob_storage_enabled,notnull"`
127+
RefCdWorkflowRunnerId int `sql:"ref_cd_workflow_runner_id,notnull"`
128+
ImagePathReservationIds []int `sql:"image_path_reservation_ids" pg:",array,notnull"`
129+
ReferenceId *string `sql:"reference_id"`
130+
ImageState constants.ImageStateWhileDeployment `sql:"image_state"` // image_state currently not utilized in oss
131131
CdWorkflow *CdWorkflow
132132
sql.AuditLog
133133
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package constants
22

3-
type ArtifactStateWhileDeployment string
3+
type ImageStateWhileDeployment string

0 commit comments

Comments
 (0)