File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212func 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"`
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func init() {
1616
1717type 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"`
You can’t perform that action at this time.
0 commit comments