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