Explorar o código

add default for Action's IsPrivate

Lunny Xiao %!s(int64=11) %!d(string=hai) anos
pai
achega
a3f807106a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"`
 }