From c73d64cdbc36ece5e613a603d1ed50f04dbc451d Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 25 Feb 2025 13:37:23 -0800 Subject: [PATCH] Remove manual doctrine mapping for enums --- app/Models/CustomField.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index 81eff9b4c..cc29cefe4 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -149,11 +149,6 @@ class CustomField extends Model return true; } - // This is just a dumb thing we have to include because Laraval/Doctrine doesn't - // play well with enums or a table that EVER had enums. :( - $platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform(); - $platform->registerDoctrineTypeMapping('enum', 'string'); - // Rename the field if the name has changed Schema::table(self::$table_name, function ($table) use ($custom_field) { $table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal('name')), $custom_field->convertUnicodeDbSlug());