diff options
author | JakobDev <jakobdev@gmx.de> | 2023-09-28 22:58:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 22:58:35 +0200 |
commit | 9d9cebc5e7da242245bd2418a43cc7f294fb485b (patch) | |
tree | 627a351668ca6ff1929995f2ad65505c6f02ec79 /models/migrations/migrations.go | |
parent | 3fcad582c9b9bfe66f4a346652f82b1aaf18430d (diff) | |
download | gitea-9d9cebc5e7da242245bd2418a43cc7f294fb485b.tar.gz gitea-9d9cebc5e7da242245bd2418a43cc7f294fb485b.zip |
Add Index to `comment.dependent_issue_id` (#27325)
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: Giteabot <teabot@gitea.io>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r-- | models/migrations/migrations.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 38fff37bed..4527bcc1ae 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -536,6 +536,8 @@ var migrations = []Migration{ NewMigration("Add RemoteAddress to mirrors", v1_21.AddRemoteAddressToMirrors), // v277 -> v278 NewMigration("Add Index to issue_user.issue_id", v1_21.AddIndexToIssueUserIssueID), + // v278 -> v279 + NewMigration("Add Index to comment.dependent_issue_id", v1_21.AddIndexToCommentDependentIssueID), } // GetCurrentDBVersion returns the current db version |