Fix can_push value to false in protected_branch (#2560)

This commit is contained in:
Lauris BH
2017-09-20 17:52:23 +03:00
committed by GitHub
parent 6f380a22a4
commit 6718ea6ff1
3 changed files with 21 additions and 0 deletions

View File

@ -26,6 +26,7 @@ type ProtectedBranch struct {
ID int64 `xorm:"pk autoincr"`
RepoID int64 `xorm:"UNIQUE(s)"`
BranchName string `xorm:"UNIQUE(s)"`
CanPush bool `xorm:"NOT NULL DEFAULT false"`
EnableWhitelist bool
WhitelistUserIDs []int64 `xorm:"JSON TEXT"`
WhitelistTeamIDs []int64 `xorm:"JSON TEXT"`