Skip to content

Commit 25f7cce

Browse files
committed
Remove index in is_pull column
1 parent ae491a4 commit 25f7cce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/issues/issue_pin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type IssuePin struct {
1818
ID int64 `xorm:"pk autoincr"`
1919
RepoID int64 `xorm:"UNIQUE(s) NOT NULL"`
2020
IssueID int64 `xorm:"UNIQUE(s) NOT NULL"`
21-
IsPull bool `xorm:"INDEX NOT NULL"`
21+
IsPull bool `xorm:"NOT NULL"`
2222
PinOrder int `xorm:"DEFAULT 0"`
2323
}
2424

models/migrations/v1_24/v313.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func MovePinOrderToTableIssuePin(x *xorm.Engine) error {
1414
ID int64 `xorm:"pk autoincr"`
1515
RepoID int64 `xorm:"UNIQUE(s) NOT NULL"`
1616
IssueID int64 `xorm:"UNIQUE(s) NOT NULL"`
17-
IsPull bool `xorm:"INDEX NOT NULL"`
17+
IsPull bool `xorm:"NOT NULL"`
1818
PinOrder int `xorm:"DEFAULT 0"`
1919
}
2020

0 commit comments

Comments
 (0)