aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 6411bee6fd..2806ef64ed 100644
--- a/models/user.go
+++ b/models/user.go
@@ -76,7 +76,7 @@ type User struct {
// Remember visibility choice for convenience, true for private
LastRepoVisibility bool
// Maximum repository creation limit, 0 means use gloabl default
- MaxRepoCreation int `xorm:"NOT NULL"`
+ MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
// Permissions.
IsActive bool