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

package v1_10 //nolint

import "xorm.io/xorm"

func AddRepoAdminChangeTeamAccessColumnForUser(x *xorm.Engine) error {
	type User struct {
		RepoAdminChangeTeamAccess bool `xorm:"NOT NULL DEFAULT false"`
	}

	return x.Sync2(new(User))
}