aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migrations
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-08-13 15:06:18 +0200
committerGitHub <noreply@github.com>2021-08-13 21:06:18 +0800
commit3a6edd36851b266612f3d325bebc716fc60bfed5 (patch)
treefe985c6ff7a565ffafb01301176e4793c83a7561 /modules/migrations
parent6bf5afe5dec19a1c44494553e03e77625dd88eb8 (diff)
downloadgitea-3a6edd36851b266612f3d325bebc716fc60bfed5.tar.gz
gitea-3a6edd36851b266612f3d325bebc716fc60bfed5.zip
Update issue_index to finish migration (#16685)
* update issue_index to finish migration * One Func to RecalculateIssueIndexForRepo
Diffstat (limited to 'modules/migrations')
-rw-r--r--modules/migrations/gitea_uploader.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go
index 2b18098b7f..e852d0f885 100644
--- a/modules/migrations/gitea_uploader.go
+++ b/modules/migrations/gitea_uploader.go
@@ -871,6 +871,11 @@ func (g *GiteaLocalUploader) Finish() error {
return ErrRepoNotCreated
}
+ // update issue_index
+ if err := models.RecalculateIssueIndexForRepo(g.repo.ID); err != nil {
+ return err
+ }
+
g.repo.Status = models.RepositoryReady
return models.UpdateRepositoryCols(g.repo, "status")
}