mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 06:21:23 +01:00
aa92b13164
fixes #22907 Tested: - [x] issue content edit - [x] issue content change tasklist - [x] pull request content edit - [x] pull request change tasklist ![issue-content-edit](https://github.com/go-gitea/gitea/assets/29250154/a0828889-fb96-4bc4-8600-da92e3205812)
18 lines
395 B
Go
18 lines
395 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_23 //nolint
|
|
|
|
import "xorm.io/xorm"
|
|
|
|
func AddContentVersionToIssueAndComment(x *xorm.Engine) error {
|
|
type Issue struct {
|
|
ContentVersion int `xorm:"NOT NULL DEFAULT 0"`
|
|
}
|
|
|
|
type Comment struct {
|
|
ContentVersion int `xorm:"NOT NULL DEFAULT 0"`
|
|
}
|
|
|
|
return x.Sync(new(Comment), new(Issue))
|
|
}
|