mirror of
https://github.com/go-gitea/gitea
synced 2024-10-19 20:10:10 +02:00
Update models/repo/license.go
Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
c218be05ff
commit
00b182c17f
@ -18,6 +18,7 @@ type RepoLicense struct { //revive:disable-line:exported
|
|||||||
ID int64 `xorm:"pk autoincr"`
|
ID int64 `xorm:"pk autoincr"`
|
||||||
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
|
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
|
||||||
CommitID string
|
CommitID string
|
||||||
|
// TODO: `INDEX` will be used to find repositories by license
|
||||||
License string `xorm:"VARCHAR(50) UNIQUE(s) INDEX NOT NULL"`
|
License string `xorm:"VARCHAR(50) UNIQUE(s) INDEX NOT NULL"`
|
||||||
CreatedUnix timeutil.TimeStamp `xorm:"INDEX CREATED"`
|
CreatedUnix timeutil.TimeStamp `xorm:"INDEX CREATED"`
|
||||||
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX UPDATED"`
|
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX UPDATED"`
|
||||||
|
Loading…
Reference in New Issue
Block a user