Hopefully fixes #4163

This commit is contained in:
snipe 2017-10-11 14:18:08 -07:00
parent 4ee7765403
commit 93990327de

View file

@ -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());
});