mirror of
https://github.com/go-gitea/gitea
synced 2024-11-17 15:31:06 +01:00
Add default for NumFollowing field (fixes #2261)
We set the default value for the non-NULL field NumFollowing of the User model to 0, which stops an error when the ORM tries to sync.
This commit is contained in:
parent
a49af93faf
commit
e914969e4c
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ type User struct {
|
||||||
|
|
||||||
// Counters
|
// Counters
|
||||||
NumFollowers int
|
NumFollowers int
|
||||||
NumFollowing int `xorm:"NOT NULL"`
|
NumFollowing int `xorm:"NOT NULL DEFAULT 0"`
|
||||||
NumStars int
|
NumStars int
|
||||||
NumRepos int
|
NumRepos int
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue