2023-09-28 22:58:35 +02:00
|
|
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
2025-06-27 07:59:55 +02:00
|
|
|
package v1_21
|
2023-09-28 22:58:35 +02:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"xorm.io/xorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func AddIndexToCommentDependentIssueID(x *xorm.Engine) error {
|
|
|
|
|
type Comment struct {
|
|
|
|
|
DependentIssueID int64 `xorm:"index"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return x.Sync(new(Comment))
|
|
|
|
|
}
|