This commit is contained in:
stuzer05 2023-02-28 15:17:00 +02:00
parent 79e18c6711
commit deddce59cf
No known key found for this signature in database
GPG Key ID: A6ABAAA9268F9F4F
3 changed files with 6 additions and 6 deletions

View File

@ -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() {

View File

@ -150,7 +150,7 @@ type Issue struct {
ShowRole RoleDescriptor `xorm:"-"`
// Time estimate
TimeEstimate int64
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
}
var (

View File

@ -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))