Browse Source

fix some older Gogs upgrade to Gitea (#929)

Lunny Xiao 2 years ago
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

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