Skip to content

Commit f5e5095

Browse files
committed
cp to own struct
1 parent a00974c commit f5e5095

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

models/migrations/v136.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ import (
1717

1818
func addCommitDivergenceToPulls(x *xorm.Engine) error {
1919

20-
if err := x.Sync2(new(models.PullRequest)); err != nil {
20+
type PullRequest struct {
21+
CommitsAhead int
22+
CommitsBehind int
23+
}
24+
25+
if err := x.Sync2(new(PullRequest)); err != nil {
2126
return fmt.Errorf("Sync2: %v", err)
2227
}
2328

0 commit comments

Comments
 (0)