diff options
Diffstat (limited to 'models/migrations/v116.go')
-rw-r--r-- | models/migrations/v116.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/models/migrations/v116.go b/models/migrations/v116.go index 6587d02f13..254d4e7a19 100644 --- a/models/migrations/v116.go +++ b/models/migrations/v116.go @@ -5,12 +5,16 @@ package migrations import ( - "code.gitea.io/gitea/models" - "xorm.io/xorm" ) func extendTrackedTimes(x *xorm.Engine) error { + + type TrackedTime struct { + Time int64 `xorm:"NOT NULL"` + Deleted bool `xorm:"NOT NULL DEFAULT false"` + } + sess := x.NewSession() defer sess.Close() @@ -22,7 +26,7 @@ func extendTrackedTimes(x *xorm.Engine) error { return err } - if err := sess.Sync2(new(models.TrackedTime)); err != nil { + if err := sess.Sync2(new(TrackedTime)); err != nil { return err } |