aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migrations/migrate.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migrations/migrate.go')
-rw-r--r--modules/migrations/migrate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/migrate.go b/modules/migrations/migrate.go
index 5adf7f8050..7fc7911f21 100644
--- a/modules/migrations/migrate.go
+++ b/modules/migrations/migrate.go
@@ -205,7 +205,7 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts
if opts.PullRequests {
log.Trace("migrating pull requests and comments")
- var prBatchSize = models.MaxBatchInsertSize("pullrequest")
+ var prBatchSize = uploader.MaxBatchInsertSize("pullrequest")
for i := 1; ; i++ {
prs, err := downloader.GetPullRequests(i, prBatchSize)
if err != nil {