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.

v194.go 412B

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