Adjust model database type mapping (#1949)

adjust definitions according to feedback from real world usage
(ci.codeberg.org)

close  #1892
close  #1865
This commit is contained in:
6543
2023-07-08 20:09:53 +02:00
committed by GitHub
parent 6c58e9db9b
commit 7c99c8b843
5 changed files with 8 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ type Workflow struct {
PID int `json:"pid" xorm:"UNIQUE(s) 'workflow_pid'"`
Name string `json:"name" xorm:"workflow_name"`
State StatusValue `json:"state" xorm:"workflow_state"`
Error string `json:"error,omitempty" xorm:"VARCHAR(500) workflow_error"`
Error string `json:"error,omitempty" xorm:"TEXT 'workflow_error'"`
Started int64 `json:"start_time,omitempty" xorm:"workflow_started"`
Stopped int64 `json:"end_time,omitempty" xorm:"workflow_stopped"`
AgentID int64 `json:"agent_id,omitempty" xorm:"workflow_agent_id"`