A free open source IT asset/license management system
Remove manual doctrine mapping for enums
Marcus Moorec73d64cdbc36
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.phpindex 81eff9b4cd..cc29cefe41 100644--- a/app/Models/CustomField.php+++ b/app/Models/CustomField.php@@ -149,11 +149,6 @@ class CustomField extends Modelreturn 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 changedSchema::table(self::$table_name, function ($table) use ($custom_field) {$table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal('name')), $custom_field->convertUnicodeDbSlug());