mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-08 15:57:42 +00:00
ac49dbe1a2
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
18 lines
390 B
Go
18 lines
390 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_22
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/modelmigration/base"
|
|
)
|
|
|
|
func AddRepoUnitEveryoneAccessMode(_ context.Context, x base.EngineMigration) error {
|
|
type RepoUnit struct { //revive:disable-line:exported
|
|
EveryoneAccessMode int `xorm:"NOT NULL DEFAULT 0"`
|
|
}
|
|
return x.Sync(&RepoUnit{})
|
|
}
|