You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v132.go 410B

123456789101112131415161718192021
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_12 //nolint
  4. import (
  5. "fmt"
  6. "xorm.io/xorm"
  7. )
  8. func AddBranchProtectionProtectedFilesColumn(x *xorm.Engine) error {
  9. type ProtectedBranch struct {
  10. ProtectedFilePatterns string `xorm:"TEXT"`
  11. }
  12. if err := x.Sync2(new(ProtectedBranch)); err != nil {
  13. return fmt.Errorf("Sync2: %w", err)
  14. }
  15. return nil
  16. }