From 0d210e87b31679fcd161628690c8318bb60d3701 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 24 Nov 2020 18:47:44 +0800 Subject: [PATCH] Fix: aria2 task failed due to limited size of attr filed in DB --- models/download.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/download.go b/models/download.go index edafb1c..12b2e57 100644 --- a/models/download.go +++ b/models/download.go @@ -18,10 +18,10 @@ type Download struct { DownloadedSize uint64 // 文件大小 GID string `gorm:"size:32,index:gid"` // 任务ID Speed int // 下载速度 - Parent string `gorm:"type:text"` // 存储目录 - Attrs string `gorm:"type:text"` // 任务状态属性 - Error string `gorm:"type:text"` // 错误描述 - Dst string `gorm:"type:text"` // 用户文件系统存储父目录路径 + Parent string `gorm:"type:text"` // 存储目录 + Attrs string `gorm:"type:text,size:65535"` // 任务状态属性 + Error string `gorm:"type:text"` // 错误描述 + Dst string `gorm:"type:text"` // 用户文件系统存储父目录路径 UserID uint // 发起者UID TaskID uint // 对应的转存任务ID