Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Set default value of the task's status in database.
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v committed Mar 25, 2019
1 parent 626c78c commit bcc27fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/web/dao/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

type Task struct {
Id int `sql:"AUTO_INCREMENT"`
Status int `sql:"type:tinyint"`
Status int `sql:"type:tinyint":"DEFAULT:1"`
Result int `sql:"type:tinyint"`
Request string `sql:"type:varchar(2048)"`
Response string `sql:"type:varchar(2048)"`
Expand Down

0 comments on commit bcc27fb

Please sign in to comment.