diff options
author | Giteabot <teabot@gitea.io> | 2023-09-29 10:00:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 02:00:14 +0000 |
commit | 7ea7f2b37f746922fe45c2418827e99a9a3041a7 (patch) | |
tree | 2bee6d175dd017b368840a785d301d4d5bbaa448 /models/issues | |
parent | c61b9c5f3c533e34066d0a6b072d42f09cecf2ac (diff) | |
download | gitea-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.go | 2 |
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 |