Browse Source

add default for Action's IsPrivate

Lunny Xiao 11 năm trước cách đây
mục cha
commit
a3f807106a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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"`
 }