Browse Source

fix some older Gogs upgrade to Gitea (#929)

for-closed-social
Lunny Xiao 7 years ago
committed by GitHub
parent
commit
837d346090
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/migrations/v16.go

+ 1
- 1
models/migrations/v16.go View File

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

Loading…
Cancel
Save