aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-02 08:18:44 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-02 08:18:44 +0800
commita3f807106a1de10213d1167aac8f3915a1b3bd93 (patch)
treef1ae17d20f7c50d84bf673e346fbb6f458976fc6
parent03c2468c2fa68e5b3c5cb6c498a155e7d725ccdb (diff)
downloadgitea-a3f807106a1de10213d1167aac8f3915a1b3bd93.tar.gz
gitea-a3f807106a1de10213d1167aac8f3915a1b3bd93.zip
add default for Action's IsPrivate
-rw-r--r--models/action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index 2fc8173443..aa3e3e83f2 100644
--- a/models/action.go
+++ b/models/action.go
@@ -40,7 +40,7 @@ type Action struct {
RepoId int64
RepoName string
RefName string
- IsPrivate bool `xorm:"not null"`
+ IsPrivate bool `xorm:"not null default false"`
Content string `xorm:"TEXT"`
Created time.Time `xorm:"created"`
}