浏览代码

add default for Action's IsPrivate

Lunny Xiao 11 年之前
父节点
当前提交
a3f807106a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/action.go

+ 1 - 1
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"`
 }