Skip to content

Commit 286a889

Browse files
committed
remove INDEX for RepoID
1 parent ae61ccd commit 286a889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/migrations/v1_23/v305.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func AddRepositoryLicenses(x *xorm.Engine) error {
1313
type RepoLicense struct {
1414
ID int64 `xorm:"pk autoincr"`
15-
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
15+
RepoID int64 `xorm:"UNIQUE(s) NOT NULL"`
1616
CommitID string
1717
License string `xorm:"VARCHAR UNIQUE(s) NOT NULL"`
1818
CreatedUnix timeutil.TimeStamp `xorm:"INDEX CREATED"`

models/repo/license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func init() {
1616

1717
type RepoLicense struct { //revive:disable-line:exported
1818
ID int64 `xorm:"pk autoincr"`
19-
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
19+
RepoID int64 `xorm:"UNIQUE(s) NOT NULL"`
2020
CommitID string
2121
License string `xorm:"VARCHAR UNIQUE(s) NOT NULL"`
2222
CreatedUnix timeutil.TimeStamp `xorm:"INDEX CREATED"`

0 commit comments

Comments
 (0)