Browse Source

Fix typo in PR migration check (#7368)

tags/v1.9.0-rc1
mrsdizzie techknowlogick 6 years ago
parent
commit
f82ea0df4c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/migrations/migrate.go

+ 1
- 1
modules/migrations/migrate.go View File

@@ -205,7 +205,7 @@ func migrateRepository(downloader base.Downloader, uploader base.Uploader, opts


if opts.PullRequests { if opts.PullRequests {
log.Trace("migrating pull requests and comments") log.Trace("migrating pull requests and comments")
var prBatchSize = models.MaxBatchInsertSize("pullrequest")
var prBatchSize = uploader.MaxBatchInsertSize("pullrequest")
for i := 1; ; i++ { for i := 1; ; i++ {
prs, err := downloader.GetPullRequests(i, prBatchSize) prs, err := downloader.GetPullRequests(i, prBatchSize)
if err != nil { if err != nil {


Loading…
Cancel
Save