summaryrefslogtreecommitdiffstats
path: root/models/migrations/v16.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v16.go')
-rw-r--r--models/migrations/v16.go2
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)
}