aboutsummaryrefslogtreecommitdiff
path: root/models/migrations/v1_18/v225.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_18/v225.go')
-rw-r--r--models/migrations/v1_18/v225.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v1_18/v225.go b/models/migrations/v1_18/v225.go
index 786772c14..b0ac3777f 100644
--- a/models/migrations/v1_18/v225.go
+++ b/models/migrations/v1_18/v225.go
@@ -16,7 +16,7 @@ func AlterPublicGPGKeyContentFieldsToMediumText(x *xorm.Engine) error {
return err
}
- if setting.Database.UseMySQL {
+ if setting.Database.Type.IsMySQL() {
if _, err := sess.Exec("ALTER TABLE `gpg_key` CHANGE `content` `content` MEDIUMTEXT"); err != nil {
return err
}