Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

v132.go 478B

12345678910111213141516171819202122
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package migrations
  5. import (
  6. "fmt"
  7. "xorm.io/xorm"
  8. )
  9. func addBranchProtectionProtectedFilesColumn(x *xorm.Engine) error {
  10. type ProtectedBranch struct {
  11. ProtectedFilePatterns string `xorm:"TEXT"`
  12. }
  13. if err := x.Sync2(new(ProtectedBranch)); err != nil {
  14. return fmt.Errorf("Sync2: %v", err)
  15. }
  16. return nil
  17. }