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