diff options
Diffstat (limited to 'models/migrations/v99.go')
-rw-r--r-- | models/migrations/v99.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/models/migrations/v99.go b/models/migrations/v99.go index 00b4509721..b6f6babcee 100644 --- a/models/migrations/v99.go +++ b/models/migrations/v99.go @@ -5,20 +5,25 @@ package migrations import ( - "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" "xorm.io/xorm" ) func addTaskTable(x *xorm.Engine) error { + // TaskType defines task type + type TaskType int + + // TaskStatus defines task status + type TaskStatus int + type Task struct { ID int64 DoerID int64 `xorm:"index"` // operator OwnerID int64 `xorm:"index"` // repo owner id, when creating, the repoID maybe zero RepoID int64 `xorm:"index"` - Type structs.TaskType - Status structs.TaskStatus `xorm:"index"` + Type TaskType + Status TaskStatus `xorm:"index"` StartTime timeutil.TimeStamp EndTime timeutil.TimeStamp PayloadContent string `xorm:"TEXT"` |