Skip to content

Commit

Permalink
fix some older Gogs upgrade to Gitea (go-gitea#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 15, 2017
1 parent be55460 commit 837d346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/migrations/v16.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Repo struct {

func addUnitsToTables(x *xorm.Engine) error {
var repos []Repo
err := x.Table("repository").Find(&repos)
err := x.Table("repository").Select("*").Find(&repos)
if err != nil {
return fmt.Errorf("Query repositories: %v", err)
}
Expand Down

0 comments on commit 837d346

Please sign in to comment.