Skip to content

Commit 62cbc16

Browse files
committed
feat: Change Result column type to longtext in Job model to fix data too long error
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent b66c49f commit 62cbc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/models/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Job struct {
2525
Type string `gorm:"column:type;type:varchar(256);comment:type" json:"type"`
2626
State string `gorm:"column:state;type:varchar(256);not null;default:'PENDING';comment:service state" json:"state"`
2727
Args JSONMap `gorm:"column:args;not null;comment:task request args" json:"args"`
28-
Result JSONMap `gorm:"column:result;comment:task result" json:"result"`
28+
Result JSONMap `gorm:"column:task_result;type:longtext;comment:task result" json:"result"`
2929
UserID uint `gorm:"column:user_id;comment:user id" json:"user_id"`
3030
User User `gorm:"-" json:"user"`
3131
SeedPeerClusters []SeedPeerCluster `gorm:"many2many:job_seed_peer_cluster;" json:"seed_peer_clusters"`

0 commit comments

Comments
 (0)