Skip to content

Commit 0198aa1

Browse files
committed
fix: remove unnecessary migration fields
1 parent 39a90ea commit 0198aa1

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

models/migrations/v1_23/v307.go

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,26 @@
44
package v1_23 //nolint
55

66
import (
7-
issues_model "code.gitea.io/gitea/models/issues"
8-
repo_model "code.gitea.io/gitea/models/repo"
9-
user_model "code.gitea.io/gitea/models/user"
107
"code.gitea.io/gitea/modules/timeutil"
118

129
"xorm.io/xorm"
1310
"xorm.io/xorm/schemas"
1411
)
1512

16-
type (
17-
// NotificationStatus is the status of the notification (read or unread)
18-
NotificationStatus uint8
19-
// NotificationSource is the source of the notification (issue, PR, commit, etc)
20-
NotificationSource uint8
21-
)
22-
2313
type improveNotificationTableIndicesAction struct {
2414
ID int64 `xorm:"pk autoincr"`
2515
UserID int64 `xorm:"INDEX NOT NULL"`
2616
RepoID int64 `xorm:"INDEX NOT NULL"`
2717

28-
Status NotificationStatus `xorm:"SMALLINT INDEX NOT NULL"`
29-
Source NotificationSource `xorm:"SMALLINT INDEX NOT NULL"`
18+
Status uint8 `xorm:"SMALLINT INDEX NOT NULL"`
19+
Source uint8 `xorm:"SMALLINT INDEX NOT NULL"`
3020

3121
IssueID int64 `xorm:"INDEX NOT NULL"`
3222
CommitID string `xorm:"INDEX"`
3323
CommentID int64
3424

3525
UpdatedBy int64 `xorm:"INDEX NOT NULL"`
3626

37-
Issue *issues_model.Issue `xorm:"-"`
38-
Repository *repo_model.Repository `xorm:"-"`
39-
Comment *issues_model.Comment `xorm:"-"`
40-
User *user_model.User `xorm:"-"`
41-
4227
CreatedUnix timeutil.TimeStamp `xorm:"created INDEX NOT NULL"`
4328
UpdatedUnix timeutil.TimeStamp `xorm:"updated INDEX NOT NULL"`
4429
}

0 commit comments

Comments
 (0)