aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/lfs.go')
-rw-r--r--internal/db/lfs.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/db/lfs.go b/internal/db/lfs.go
index 128069ed..4db2fa2d 100644
--- a/internal/db/lfs.go
+++ b/internal/db/lfs.go
@@ -30,10 +30,6 @@ type LFSStore interface {
var LFS LFSStore
-type lfs struct {
- *gorm.DB
-}
-
// LFSObject is the relation between an LFS object and a repository.
type LFSObject struct {
RepoID int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT:false"`
@@ -43,6 +39,12 @@ type LFSObject struct {
CreatedAt time.Time `gorm:"NOT NULL"`
}
+var _ LFSStore = (*lfs)(nil)
+
+type lfs struct {
+ *gorm.DB
+}
+
func (db *lfs) CreateObject(repoID int64, oid lfsutil.OID, size int64, storage lfsutil.Storage) error {
object := &LFSObject{
RepoID: repoID,