gitea源码

v113.go 356B

1234567891011121314151617181920212223
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_11
  4. import (
  5. "fmt"
  6. "xorm.io/xorm"
  7. )
  8. func FeatureChangeTargetBranch(x *xorm.Engine) error {
  9. type Comment struct {
  10. OldRef string
  11. NewRef string
  12. }
  13. if err := x.Sync(new(Comment)); err != nil {
  14. return fmt.Errorf("Sync: %w", err)
  15. }
  16. return nil
  17. }