Explorar el Código

add default for Action's IsPrivate

Lunny Xiao hace 11 años
padre
commit
a3f807106a
Se han modificado 1 ficheros con 1 adiciones y 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"`
 }