Skip to content

Commit 5e3855e

Browse files
authored
Merge pull request #16345 from marcusmoore/fixes/update-custom-fields
Fixed renaming custom fields
2 parents 037d2d9 + c73d64c commit 5e3855e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/Models/CustomField.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ public static function boot()
149149
return true;
150150
}
151151

152-
// This is just a dumb thing we have to include because Laraval/Doctrine doesn't
153-
// play well with enums or a table that EVER had enums. :(
154-
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
155-
$platform->registerDoctrineTypeMapping('enum', 'string');
156-
157152
// Rename the field if the name has changed
158153
Schema::table(self::$table_name, function ($table) use ($custom_field) {
159154
$table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal('name')), $custom_field->convertUnicodeDbSlug());

0 commit comments

Comments
 (0)