diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-15 09:32:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 09:32:03 +0800 |
commit | 837d34609052b5ea772c4774ef9ed2bf90d5af47 (patch) | |
tree | 749f2f9a43bce089bdf223c1b0dfeba058b4b64a /models/migrations/v16.go | |
parent | be55460b63dd441f4b3879fdaafa2385927cd59c (diff) | |
download | gitea-837d34609052b5ea772c4774ef9ed2bf90d5af47.tar.gz gitea-837d34609052b5ea772c4774ef9ed2bf90d5af47.zip |
fix some older Gogs upgrade to Gitea (#929)
Diffstat (limited to 'models/migrations/v16.go')
-rw-r--r-- | models/migrations/v16.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v16.go b/models/migrations/v16.go index fca8311cbd..de43007077 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) } |