summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-02-28 23:58:04 -0500
committerUnknwon <u@gogs.io>2015-02-28 23:58:04 -0500
commit63a73b43b452afbcef5e4bae9b54bdeacd0ac827 (patch)
tree38fee1ccf7cabd2e43065221eb1c57aa2381393f /models
parent3db80f2c555316b92b2be0cb0a53adb37eca910a (diff)
downloadgitea-63a73b43b452afbcef5e4bae9b54bdeacd0ac827.tar.gz
gitea-63a73b43b452afbcef5e4bae9b54bdeacd0ac827.zip
models/migrations: fix update error
Diffstat (limited to 'models')
-rw-r--r--models/migrations/migrations.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 25c130a926..8d2d5b40a1 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -289,7 +289,7 @@ func accessRefactor(x *xorm.Engine) (err error) {
return fmt.Errorf("select users from team: %v", err)
}
for _, user := range results {
- userID := com.StrTo(user["user_id"]).MustInt64()
+ userID := com.StrTo(user["uid"]).MustInt64()
accessMap[UserRepo{userID, repoID}] = mode
}
}