Skip to content

Commit 18c4913

Browse files
committed
LONGTEXT
1 parent 758dfa7 commit 18c4913

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/migrations/v215.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func addReviewViewedFiles(x *xorm.Engine) error {
1717
UserID int64 `xorm:"NOT NULL UNIQUE(pull_commit_user)"`
1818
PullID int64 `xorm:"NOT NULL UNIQUE(pull_commit_user) DEFAULT 0"`
1919
CommitSHA string `xorm:"NOT NULL VARCHAR(40) UNIQUE(pull_commit_user)"`
20-
UpdatedFiles map[string]pull.ViewedState `xorm:"NOT NULL TEXT JSON"`
20+
UpdatedFiles map[string]pull.ViewedState `xorm:"NOT NULL LONGTEXT JSON"`
2121
UpdatedUnix timeutil.TimeStamp `xorm:"updated"`
2222
}
2323

models/pull/review_state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type ReviewState struct {
4040
UserID int64 `xorm:"NOT NULL UNIQUE(pull_commit_user)"`
4141
PullID int64 `xorm:"NOT NULL UNIQUE(pull_commit_user) DEFAULT 0"` // Which PR was the review on?
4242
CommitSHA string `xorm:"NOT NULL VARCHAR(40) UNIQUE(pull_commit_user)"` // Which commit was the head commit for the review?
43-
UpdatedFiles map[string]ViewedState `xorm:"NOT NULL TEXT JSON"` // Stores for each of the changed files of a PR whether they have been viewed, changed since last viewed, or not viewed
43+
UpdatedFiles map[string]ViewedState `xorm:"NOT NULL LONGTEXT JSON"` // Stores for each of the changed files of a PR whether they have been viewed, changed since last viewed, or not viewed
4444
UpdatedUnix timeutil.TimeStamp `xorm:"updated"` // Is an accurate indicator of the order of commits as we do not expect it to be possible to make reviews on previous commits
4545
}
4646

0 commit comments

Comments
 (0)