summaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-29 10:00:14 +0800
committerGitHub <noreply@github.com>2023-09-29 02:00:14 +0000
commit7ea7f2b37f746922fe45c2418827e99a9a3041a7 (patch)
tree2bee6d175dd017b368840a785d301d4d5bbaa448 /models/issues
parentc61b9c5f3c533e34066d0a6b072d42f09cecf2ac (diff)
downloadgitea-7ea7f2b37f746922fe45c2418827e99a9a3041a7.tar.gz
gitea-7ea7f2b37f746922fe45c2418827e99a9a3041a7.zip
Add Index to `comment.dependent_issue_id` (#27325) (#27340)
Backport #27325 by @JakobDev This Column is missing index. It is used by [issue_service.deleteIssue](https://github.com/go-gitea/gitea/blob/7ea2a910cebaf51cfd13c0941029c404e408ae54/services/issue/issue.go#L300). Co-authored-by: JakobDev <jakobdev@gmx.de>
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go
index 66b3a8527f..8b1b18051e 100644
--- a/models/issues/comment.go
+++ b/models/issues/comment.go
@@ -246,7 +246,7 @@ type Comment struct {
NewTitle string
OldRef string
NewRef string
- DependentIssueID int64
+ DependentIssueID int64 `xorm:"index"` // This is used by issue_service.deleteIssue
DependentIssue *Issue `xorm:"-"`
CommitID int64