From b8f25683e75823bbaa10ecdc89ab01be49cf5233 Mon Sep 17 00:00:00 2001 From: taolx0 Date: Fri, 1 Nov 2024 15:01:11 +0800 Subject: [PATCH] chore:To increase the number of assignable people for tickets, we need to increase the string length to 2000 characters. --- sqle/model/instance_audit_plan.go | 2 +- sqle/model/sql_manage.go | 2 +- sqle/model/workflow.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sqle/model/instance_audit_plan.go b/sqle/model/instance_audit_plan.go index 31fecb9a9..cdc43faff 100644 --- a/sqle/model/instance_audit_plan.go +++ b/sqle/model/instance_audit_plan.go @@ -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)"` } diff --git a/sqle/model/sql_manage.go b/sqle/model/sql_manage.go index 163e15ea9..ac5116ce0 100644 --- a/sqle/model/sql_manage.go +++ b/sqle/model/sql_manage.go @@ -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)"` diff --git a/sqle/model/workflow.go b/sqle/model/workflow.go index 7e15cc6bd..a7b6fa2a9 100644 --- a/sqle/model/workflow.go +++ b/sqle/model/workflow.go @@ -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 { @@ -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"` }