mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-22 09:01:25 +00: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
252 B
Go
16 lines
252 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package models
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/models/unit"
|
|
)
|
|
|
|
// Init initialize model
|
|
func Init(ctx context.Context) error {
|
|
return unit.LoadUnitConfig()
|
|
}
|