gitea源码

123456789101112131415161718
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_11
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddWhitelistDeployKeysToBranches(x *xorm.Engine) error {
  8. type ProtectedBranch struct {
  9. ID int64
  10. WhitelistDeployKeys bool `xorm:"NOT NULL DEFAULT false"`
  11. }
  12. return x.Sync(new(ProtectedBranch))
  13. }