gitea源码

v190.go 408B

123456789101112131415161718192021222324
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_16
  4. import (
  5. "fmt"
  6. "xorm.io/xorm"
  7. )
  8. func AddAgitFlowPullRequest(x *xorm.Engine) error {
  9. type PullRequestFlow int
  10. type PullRequest struct {
  11. Flow PullRequestFlow `xorm:"NOT NULL DEFAULT 0"`
  12. }
  13. if err := x.Sync(new(PullRequest)); err != nil {
  14. return fmt.Errorf("sync2: %w", err)
  15. }
  16. return nil
  17. }