gitea/models/migrations/v1_20/v245.go
2023-02-24 23:33:27 +02:00

26 lines
436 B
Go

// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_20 //nolint
import (
"xorm.io/xorm"
)
func AddTimeEstimateColumnToIssueTable(x *xorm.Engine) error {
type Issue struct {
TimeEstimate int64
}
return x.Sync(new(Issue))
}
func AddColumnsToCommentTable(x *xorm.Engine) error {
type Comment struct {
TimeTracked int64
TimeEstimate int64
}
return x.Sync(new(Comment))
}