aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-08-22 23:33:05 +0800
committerGitHub <noreply@github.com>2021-08-22 23:33:05 +0800
commitb55c699c62406cb0a98c11e2a3ced99ff12faa41 (patch)
treef83a07470d86d69a8aa007676b82f3608e00ea6d /models/issue_comment.go
parent7f856109420ddce421dab8d37e2590c9a4db4fd0 (diff)
downloadgitea-b55c699c62406cb0a98c11e2a3ced99ff12faa41.tar.gz
gitea-b55c699c62406cb0a98c11e2a3ced99ff12faa41.zip
Alter issue/comment table TEXT fields to LONGTEXT (#16765)
* Alter issue/comment table TEXT fields to LONGTEXT * Use If not Switch Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 06b74dff85..10a7d0b114 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -155,12 +155,12 @@ type Comment struct {
CommitID int64
Line int64 // - previous line / + proposed line
TreePath string
- Content string `xorm:"TEXT"`
+ Content string `xorm:"LONGTEXT"`
RenderedContent string `xorm:"-"`
// Path represents the 4 lines of code cemented by this comment
Patch string `xorm:"-"`
- PatchQuoted string `xorm:"TEXT patch"`
+ PatchQuoted string `xorm:"LONGTEXT patch"`
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`