mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-23 22:04:19 +02:00
by the way, remove some unnecessary "models" imports from model migration package, fix migration test model init bug (modelmigration/migrationtest/tests.go)
16 lines
359 B
Go
16 lines
359 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_22
|
|
|
|
import (
|
|
"gitea.dev/modelmigration/base"
|
|
)
|
|
|
|
func AddRepoUnitEveryoneAccessMode(x base.EngineMigration) error {
|
|
type RepoUnit struct { //revive:disable-line:exported
|
|
EveryoneAccessMode int `xorm:"NOT NULL DEFAULT 0"`
|
|
}
|
|
return x.Sync(&RepoUnit{})
|
|
}
|