Skip to content

Commit bc299b8

Browse files
authored
fix avatar update bug (#1729)
1 parent 91417e9 commit bc299b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/migrations/v20.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func useNewNameAvatars(x *xorm.Engine) error {
3434
}
3535

3636
type User struct {
37+
ID int64 `xorm:"pk autoincr"`
3738
Avatar string
3839
UseCustomAvatar bool
3940
}

0 commit comments

Comments
 (0)