]> source.dussan.org Git - gitea.git/commitdiff
add default for Action's IsPrivate
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 2 May 2014 00:18:44 +0000 (08:18 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Fri, 2 May 2014 00:18:44 +0000 (08:18 +0800)
models/action.go

index 2fc8173443420002c8eb5137a800d9a4022ec219..aa3e3e83f2ab9af1570d86a8ecd98d56fcb6228c 100644 (file)
@@ -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"`
 }