aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-25 18:07:39 +0800
committerGitHub <noreply@github.com>2022-06-25 18:07:39 +0800
commit083c3ee659c6c5542687f3bafae68cbc24dbc90f (patch)
tree0103bf3b5c5ebfccd368a7cb6a425a521fd669d9 /internal/db/lfs.go
parent9df4e3ae3c555a86f691f0d78a43834842e77d8b (diff)
db: refactor "action" table to use GORM (#7054)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/db/lfs.go')
-rw-r--r--internal/db/lfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/lfs.go b/internal/db/lfs.go
index 1a34b802..5b5796c8 100644
--- a/internal/db/lfs.go
+++ b/internal/db/lfs.go
@@ -33,8 +33,8 @@ var LFS LFSStore
// LFSObject is the relation between an LFS object and a repository.
type LFSObject struct {
- RepoID int64 `gorm:"primary_key;auto_increment:false"`
- OID lfsutil.OID `gorm:"primary_key;column:oid"`
+ RepoID int64 `gorm:"primaryKey;auto_increment:false"`
+ OID lfsutil.OID `gorm:"primaryKey;column:oid"`
Size int64 `gorm:"not null"`
Storage lfsutil.Storage `gorm:"not null"`
CreatedAt time.Time `gorm:"not null"`