From 506c98df5bd7d795491906645d8f9befbf91e91a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 14 May 2017 13:39:53 +0800 Subject: [PATCH] fix update avatar --- models/migrations/v20.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/migrations/v20.go b/models/migrations/v20.go index 982914a06..ded99e09c 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 }