diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-02 08:18:44 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-02 08:18:44 +0800 |
commit | a3f807106a1de10213d1167aac8f3915a1b3bd93 (patch) | |
tree | f1ae17d20f7c50d84bf673e346fbb6f458976fc6 | |
parent | 03c2468c2fa68e5b3c5cb6c498a155e7d725ccdb (diff) | |
download | gitea-a3f807106a1de10213d1167aac8f3915a1b3bd93.tar.gz gitea-a3f807106a1de10213d1167aac8f3915a1b3bd93.zip |
add default for Action's IsPrivate
-rw-r--r-- | models/action.go | 2 |
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"` } |