diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-08-22 23:33:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 23:33:05 +0800 |
commit | b55c699c62406cb0a98c11e2a3ced99ff12faa41 (patch) | |
tree | f83a07470d86d69a8aa007676b82f3608e00ea6d /models/issue.go | |
parent | 7f856109420ddce421dab8d37e2590c9a4db4fd0 (diff) | |
download | gitea-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.go')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index 804d7dc101..9e63ac4e58 100644 --- a/models/issue.go +++ b/models/issue.go @@ -36,7 +36,7 @@ type Issue struct { OriginalAuthor string OriginalAuthorID int64 `xorm:"index"` Title string `xorm:"name"` - Content string `xorm:"TEXT"` + Content string `xorm:"LONGTEXT"` RenderedContent string `xorm:"-"` Labels []*Label `xorm:"-"` MilestoneID int64 `xorm:"INDEX"` |