code.gitea.io/gitea@v1.21.7/models/migrations/v1_15/v178.go (about)

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