Skip to content

Commit 01dc5d2

Browse files
committed
Add migration
1 parent 4fadaf6 commit 01dc5d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

models/migrations/v1_23/v306.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2024 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
4+
package v1_23 //nolint
5+
6+
import "xorm.io/xorm"
7+
8+
func AddBlockAdminMergeOverrideBranchProtection(x *xorm.Engine) error {
9+
type ProtectedBranch struct {
10+
BlockAdminMergeOverride bool `xorm:"NOT NULL DEFAULT false"`
11+
}
12+
return x.Sync(new(ProtectedBranch))
13+
}

0 commit comments

Comments
 (0)