We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5bc886 commit ffddf43Copy full SHA for ffddf43
models/migrations/v1_23/v306.go
@@ -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