mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-28 02:38:44 +09:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
16 lines
404 B
Go
16 lines
404 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_17
|
|
|
|
import "code.gitea.io/gitea/models/db"
|
|
|
|
func AddAllowMaintainerEdit(x db.EngineMigration) error {
|
|
// PullRequest represents relation between pull request and repositories.
|
|
type PullRequest struct {
|
|
AllowMaintainerEdit bool `xorm:"NOT NULL DEFAULT false"`
|
|
}
|
|
|
|
return x.Sync(new(PullRequest))
|
|
}
|