0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 09:44:16 +01:00

fix some older Gogs upgrade to Gitea (#929)

This commit is contained in:
Lunny Xiao 2017-02-15 09:32:03 +08:00 committed by GitHub
parent be55460b63
commit 837d346090

View file

@ -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)
}