gitea源码

v213.go 386B

123456789101112131415161718
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_17
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddAllowMaintainerEdit(x *xorm.Engine) error {
  8. // PullRequest represents relation between pull request and repositories.
  9. type PullRequest struct {
  10. AllowMaintainerEdit bool `xorm:"NOT NULL DEFAULT false"`
  11. }
  12. return x.Sync(new(PullRequest))
  13. }