We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496463c commit e7588cdCopy full SHA for e7588cd
models/migrations/v191.go
@@ -17,16 +17,13 @@ func alterIssueAndCommentTextFieldsToLongText(x *xorm.Engine) error {
17
return err
18
}
19
20
- switch {
21
- case setting.Database.UseMySQL:
+ if setting.Database.UseMySQL {
22
if _, err := sess.Exec("ALTER TABLE `issue` CHANGE `content` `content` LONGTEXT"); err != nil {
23
24
25
if _, err := sess.Exec("ALTER TABLE `comment` CHANGE `content` `content` LONGTEXT, CHANGE `patch` `patch` LONGTEXT"); err != nil {
26
27
28
- default:
29
- // only MySQL needs to widen the TEXT limitation. pgsql/mssql/sqlite do not have such limitation.
30
31
return sess.Commit()
32
0 commit comments