code.gitea.io/gitea@v1.21.7/models/migrations/v1_14/v160.go (about)

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package v1_14 //nolint
     5  
     6  import (
     7  	"xorm.io/xorm"
     8  )
     9  
    10  func AddBlockOnOfficialReviewRequests(x *xorm.Engine) error {
    11  	type ProtectedBranch struct {
    12  		BlockOnOfficialReviewRequests bool `xorm:"NOT NULL DEFAULT false"`
    13  	}
    14  
    15  	return x.Sync(new(ProtectedBranch))
    16  }