mirror of https://github.com/go-gitea/gitea
Commit
This commit is contained in:
parent
79e18c6711
commit
deddce59cf
|
@ -247,7 +247,7 @@ type Comment struct {
|
|||
Milestone *Milestone `xorm:"-"`
|
||||
TimeID int64
|
||||
Time *TrackedTime `xorm:"-"`
|
||||
TimeTracked int64
|
||||
TimeTracked int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
AssigneeID int64
|
||||
RemovedAssignee bool
|
||||
Assignee *user_model.User `xorm:"-"`
|
||||
|
@ -306,7 +306,7 @@ type Comment struct {
|
|||
CommitsNum int64 `xorm:"-"`
|
||||
IsForcePush bool `xorm:"-"`
|
||||
|
||||
TimeEstimate int64
|
||||
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -150,7 +150,7 @@ type Issue struct {
|
|||
ShowRole RoleDescriptor `xorm:"-"`
|
||||
|
||||
// Time estimate
|
||||
TimeEstimate int64
|
||||
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
func AddTimeEstimateColumnToIssueTable(x *xorm.Engine) error {
|
||||
type Issue struct {
|
||||
TimeEstimate int64
|
||||
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
}
|
||||
|
||||
return x.Sync(new(Issue))
|
||||
|
@ -17,8 +17,8 @@ func AddTimeEstimateColumnToIssueTable(x *xorm.Engine) error {
|
|||
|
||||
func AddColumnsToCommentTable(x *xorm.Engine) error {
|
||||
type Comment struct {
|
||||
TimeTracked int64
|
||||
TimeEstimate int64
|
||||
TimeTracked int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
}
|
||||
|
||||
return x.Sync(new(Comment))
|
||||
|
|
Loading…
Reference in New Issue