diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-06-29 21:38:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 21:38:22 +0800 |
commit | 462284e2f5768cf04d71c7abd8c01eef20cff73d (patch) | |
tree | 10d970a11d6c604cbe99cbd1e89c6dda983d6ac7 /modules/migrations/github.go | |
parent | e463bdaf8d995d0b399c1848a780ac5aa8798f0d (diff) | |
download | gitea-462284e2f5768cf04d71c7abd8c01eef20cff73d.tar.gz gitea-462284e2f5768cf04d71c7abd8c01eef20cff73d.zip |
Use batch insert on migrating repository to make the process faster (#7050)
* Use batch insert on migrating repository to make the process faster
* fix lint
* fix tests
* fix comments
Diffstat (limited to 'modules/migrations/github.go')
-rw-r--r-- | modules/migrations/github.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/migrations/github.go b/modules/migrations/github.go index 6847787ace..e6b532df9c 100644 --- a/modules/migrations/github.go +++ b/modules/migrations/github.go @@ -358,6 +358,7 @@ func (g *GithubDownloaderV3) GetComments(issueNumber int64) ([]*base.Comment, er reactions = convertGithubReactions(comment.Reactions) } allComments = append(allComments, &base.Comment{ + IssueIndex: issueNumber, PosterName: *comment.User.Login, PosterEmail: email, Content: *comment.Body, |