aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-05-14 13:39:53 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-14 13:39:53 +0800
commit506c98df5bd7d795491906645d8f9befbf91e91a (patch)
treec72b3a7065a567dbfa9472c503f4872a8c9bf822
parentf9859a29913a4fddbdd9f67febef3553ddf8c98b (diff)
downloadgitea-506c98df5bd7d795491906645d8f9befbf91e91a.tar.gz
gitea-506c98df5bd7d795491906645d8f9befbf91e91a.zip
fix update avatar
-rw-r--r--models/migrations/v20.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/migrations/v20.go b/models/migrations/v20.go
index 982914a06e..ded99e09ce 100644
--- a/models/migrations/v20.go
+++ b/models/migrations/v20.go
@@ -34,6 +34,7 @@ func useNewNameAvatars(x *xorm.Engine) error {
}
type User struct {
+ ID int64 `xorm:"pk autoincr"`
Avatar string
UseCustomAvatar bool
}