Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1234567891011121314151617181920212223
  1. // Copyright 2019 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 featureChangeTargetBranch(x *xorm.Engine) error {
  10. type Comment struct {
  11. OldRef string
  12. NewRef string
  13. }
  14. if err := x.Sync2(new(Comment)); err != nil {
  15. return fmt.Errorf("Sync2: %v", err)
  16. }
  17. return nil
  18. }