Skip to content

Commit

Permalink
chore:To increase the number of assignable people for tickets, we nee…
Browse files Browse the repository at this point in the history
…d to increase the string length to 2000 characters.
  • Loading branch information
taolx0 committed Nov 1, 2024
1 parent e8b643f commit b8f2568
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sqle/model/instance_audit_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ type SQLManageRecordProcess struct {

SQLManageRecordID *uint `json:"sql_manage_record_id" gorm:"unique;not null"`
// 任务属性字段
Assignees string `json:"assignees" gorm:"type:varchar(255)"`
Assignees string `json:"assignees" gorm:"type:varchar(2000)"`
Status string `json:"status" gorm:"default:\"unhandled\""`
Remark string `json:"remark" gorm:"type:varchar(4000)"`
}
Expand Down
2 changes: 1 addition & 1 deletion sqle/model/sql_manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type SqlManage struct {
InstanceName string `json:"instance_name" gorm:"type:varchar(255)"`
SchemaName string `json:"schema_name" gorm:"type:varchar(255)"`

Assignees string `json:"assignees" gorm:"type:varchar(255)"`
Assignees string `json:"assignees" gorm:"type:varchar(2000)"`
Status string `json:"status" gorm:"default:\"unhandled\"; type:varchar(255)"`
Remark string `json:"remark" gorm:"type:varchar(4000)"`

Expand Down
4 changes: 2 additions & 2 deletions sqle/model/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ type WorkflowInstanceRecord struct {
Instance *Instance `gorm:"foreignkey:InstanceId"`
Task *Task `gorm:"foreignkey:TaskId"`
// User *User `gorm:"foreignkey:ExecutionUserId"`
ExecutionAssignees string `gorm:"type:varchar(255)"`
ExecutionAssignees string `gorm:"type:varchar(2000)"`
}

func (s *Storage) UpdateWorkflowInstanceRecordById(id uint, m map[string]interface{}) error {
Expand Down Expand Up @@ -312,7 +312,7 @@ type WorkflowStep struct {
State string `gorm:"default:\"initialized\"; type:varchar(255)"`
Reason string `gorm:"type:varchar(255)"`

Assignees string `gorm:"type:varchar(255)"` // `gorm:"many2many:workflow_step_user"`
Assignees string `gorm:"type:varchar(2000)"` // `gorm:"many2many:workflow_step_user"`
Template *WorkflowStepTemplate `gorm:"foreignkey:WorkflowStepTemplateId"`
// OperationUser string // `gorm:"foreignkey:OperationUserId"`
}
Expand Down

0 comments on commit b8f2568

Please sign in to comment.