gitea源码

v178.go 352B

123456789101112131415161718
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_15
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddLFSMirrorColumns(x *xorm.Engine) error {
  8. type Mirror struct {
  9. LFS bool `xorm:"lfs_enabled NOT NULL DEFAULT false"`
  10. LFSEndpoint string `xorm:"lfs_endpoint TEXT"`
  11. }
  12. return x.Sync(new(Mirror))
  13. }