Skip to content

Commit

Permalink
cp to own struct
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed May 27, 2020
1 parent a00974c commit f5e5095
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion models/migrations/v136.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ import (

func addCommitDivergenceToPulls(x *xorm.Engine) error {

if err := x.Sync2(new(models.PullRequest)); err != nil {
type PullRequest struct {
CommitsAhead int
CommitsBehind int
}

if err := x.Sync2(new(PullRequest)); err != nil {
return fmt.Errorf("Sync2: %v", err)
}

Expand Down

0 comments on commit f5e5095

Please sign in to comment.