aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migrations
diff options
context:
space:
mode:
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")
}