summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-05-16 08:36:09 +0800
committerGitHub <noreply@github.com>2017-05-16 08:36:09 +0800
commitbc299b8317df8aadb37b9b7c11bac68fb1813ae3 (patch)
tree98855345c79e82f09bfe7503798036bcc21a03d0
parent91417e971553ca0a4862fb42188a816a2ea86277 (diff)
downloadgitea-bc299b8317df8aadb37b9b7c11bac68fb1813ae3.tar.gz
gitea-bc299b8317df8aadb37b9b7c11bac68fb1813ae3.zip
fix avatar update bug (#1729)
-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
}