gitea source for verification 2026-05-22
This commit is contained in:
17
models/migrations/v1_15/v178.go
Normal file
17
models/migrations/v1_15/v178.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2021 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v1_15
|
||||
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
func AddLFSMirrorColumns(x *xorm.Engine) error {
|
||||
type Mirror struct {
|
||||
LFS bool `xorm:"lfs_enabled NOT NULL DEFAULT false"`
|
||||
LFSEndpoint string `xorm:"lfs_endpoint TEXT"`
|
||||
}
|
||||
|
||||
return x.Sync(new(Mirror))
|
||||
}
|
||||
Reference in New Issue
Block a user