Files
Atay-Makhzan/models/migrations/v1_15/v178.go
T

18 lines
362 B
Go
Raw Normal View History

2021-04-09 00:25:57 +02:00
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2021-04-09 00:25:57 +02:00
2022-11-02 16:54:36 +08:00
package v1_15 //nolint
2021-04-09 00:25:57 +02:00
import (
"xorm.io/xorm"
)
2022-11-02 16:54:36 +08:00
func AddLFSMirrorColumns(x *xorm.Engine) error {
2021-04-09 00:25:57 +02:00
type Mirror struct {
LFS bool `xorm:"lfs_enabled NOT NULL DEFAULT false"`
LFSEndpoint string `xorm:"lfs_endpoint TEXT"`
}
return x.Sync2(new(Mirror))
}