Skip to content

A free open source IT asset/license management system

Hopefully fixes #4163

snipe93990327deb0
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php
index d85c759775..c0ddba3cc9 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());
});