From 837d34609052b5ea772c4774ef9ed2bf90d5af47 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 15 Feb 2017 09:32:03 +0800 Subject: [PATCH] fix some older Gogs upgrade to Gitea (#929) --- models/migrations/v16.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/migrations/v16.go b/models/migrations/v16.go index fca8311cbd39..de4300707785 100644 --- a/models/migrations/v16.go +++ b/models/migrations/v16.go @@ -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) }