mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-06 09:19:35 +00:00
18 lines
342 B
Go
18 lines
342 B
Go
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package v1_22 //nolint
|
||
|
|
||
|
import (
|
||
|
"xorm.io/xorm"
|
||
|
)
|
||
|
|
||
|
func AddDefaultPermissionsToRepoUnit(x *xorm.Engine) error {
|
||
|
type RepoUnit struct {
|
||
|
ID int64
|
||
|
DefaultPermissions int `xorm:"NOT NULL DEFAULT 0"`
|
||
|
}
|
||
|
|
||
|
return x.Sync(&RepoUnit{})
|
||
|
}
|