summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_10/v97.go
blob: dee45b32e35eaa2af661073107593b5b0610c1c1 (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.Sync(new(User))
}