From 93990327deb06b6d65f2753544090ab3f2dbdd02 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Oct 2017 14:18:08 -0700 Subject: [PATCH] Hopefully fixes #4163 --- app/Models/CustomField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index d85c75977..c0ddba3cc 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -62,7 +62,9 @@ class CustomField extends Model return true; } - + $platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform(); + $platform->registerDoctrineTypeMapping('enum', 'string'); + Schema::table(CustomField::$table_name, function ($table) use ($custom_field) { $table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal("name")), $custom_field->convertUnicodeDbSlug()); });