mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-22 02:11:12 +00:00
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8422 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
18 lines
386 B
Go
18 lines
386 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_23
|
|
|
|
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))
|
|
}
|