Skip to content

Commit 58b5203

Browse files
committed
fix: remove unnecessary index
1 parent 09c4ea7 commit 58b5203

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

models/migrations/v1_23/v307.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ import (
1212

1313
type improveNotificationTableIndicesAction struct {
1414
ID int64 `xorm:"pk autoincr"`
15-
UserID int64 `xorm:"INDEX NOT NULL"`
16-
RepoID int64 `xorm:"INDEX NOT NULL"`
15+
UserID int64 `xorm:"NOT NULL"`
16+
RepoID int64 `xorm:"NOT NULL"`
1717

18-
Status uint8 `xorm:"SMALLINT INDEX NOT NULL"`
19-
Source uint8 `xorm:"SMALLINT INDEX NOT NULL"`
18+
Status uint8 `xorm:"SMALLINT NOT NULL"`
19+
Source uint8 `xorm:"SMALLINT NOT NULL"`
2020

21-
IssueID int64 `xorm:"INDEX NOT NULL"`
22-
CommitID string `xorm:"INDEX"`
21+
IssueID int64 `xorm:"NOT NULL"`
22+
CommitID string
2323
CommentID int64
2424

25-
UpdatedBy int64 `xorm:"INDEX NOT NULL"`
25+
UpdatedBy int64 `xorm:"NOT NULL"`
2626

27-
CreatedUnix timeutil.TimeStamp `xorm:"created INDEX NOT NULL"`
28-
UpdatedUnix timeutil.TimeStamp `xorm:"updated INDEX NOT NULL"`
27+
CreatedUnix timeutil.TimeStamp `xorm:"created NOT NULL"`
28+
UpdatedUnix timeutil.TimeStamp `xorm:"updated NOT NULL"`
2929
}
3030

3131
// TableName sets the name of this table

0 commit comments

Comments
 (0)