diff options
author | Unknwon <u@gogs.io> | 2015-12-24 10:13:13 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-24 10:13:13 -0500 |
commit | 157d8682545a21d8f00110c32dcd4e4fe1f3e6b9 (patch) | |
tree | ea57850cff9fbfab315f3529b26461a22f5ea7fd /models | |
parent | e16042010e102eb135c3b5ed2014c1d99e6412cf (diff) | |
parent | e914969e4c5d3269cc54d174983ba9e504f1d5d9 (diff) |
Merge pull request #2262 from angus-g/fixes/user-following-migration
Add default for NumFollowing field (fixes #2261)
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 1a8500ac..f648a8ab 100644 --- a/models/user.go +++ b/models/user.go @@ -91,7 +91,7 @@ type User struct { // Counters NumFollowers int - NumFollowing int `xorm:"NOT NULL"` + NumFollowing int `xorm:"NOT NULL DEFAULT 0"` NumStars int NumRepos int |