aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_22/v284.go
blob: 1a4c786964909db16456abe151d0af0c8584041b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint
import (
	"xorm.io/xorm"
)

func AddIgnoreStaleApprovalsColumnToProtectedBranchTable(x *xorm.Engine) error {
	type ProtectedBranch struct {
		IgnoreStaleApprovals bool `xorm:"NOT NULL DEFAULT false"`
	}
	return x.Sync(new(ProtectedBranch))
}