diff options
Diffstat (limited to 'models/migrations/v97.go')
-rw-r--r-- | models/migrations/v97.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/models/migrations/v97.go b/models/migrations/v97.go new file mode 100644 index 0000000000..fa542f2ccd --- /dev/null +++ b/models/migrations/v97.go @@ -0,0 +1,15 @@ +// Copyright 2019 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migrations + +import "github.com/go-xorm/xorm" + +func addRepoAdminChangeTeamAccessColumnForUser(x *xorm.Engine) error { + type User struct { + RepoAdminChangeTeamAccess bool `xorm:"NOT NULL DEFAULT false"` + } + + return x.Sync2(new(User)) +} |