diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-11 01:25:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 01:25:19 +0800 |
commit | 62dda96159055ff9d485078f257445b964eb5220 (patch) | |
tree | a8bd161dc92c368bee0e6b58797e23278565cd8b /internal/db/lfs.go | |
parent | 5753d4cb87388c247e91eaf3ce641d309a45e760 (diff) |
access_token: migrate to GORM and add tests (#6086)
* access_token: migrate to GORM
* Add tests
* Fix tests
* Fix test clock
Diffstat (limited to 'internal/db/lfs.go')
-rw-r--r-- | internal/db/lfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/lfs.go b/internal/db/lfs.go index 26a24df5..128069ed 100644 --- a/internal/db/lfs.go +++ b/internal/db/lfs.go @@ -37,7 +37,7 @@ type lfs struct { // 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"` + OID lfsutil.OID `gorm:"PRIMARY_KEY;COLUMN:oid"` Size int64 `gorm:"NOT NULL"` Storage lfsutil.Storage `gorm:"NOT NULL"` CreatedAt time.Time `gorm:"NOT NULL"` |