Skip to content

Commit

Permalink
Fix: aria2 task failed due to limited size of attr filed in DB
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed Nov 24, 2020
1 parent f0a6823 commit 0d210e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0d210e8

Please sign in to comment.