mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Hopefully fixes #4163
This commit is contained in:
parent
4ee7765403
commit
93990327de
|
@ -62,6 +62,8 @@ class CustomField extends Model
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||||
|
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
Schema::table(CustomField::$table_name, function ($table) use ($custom_field) {
|
Schema::table(CustomField::$table_name, function ($table) use ($custom_field) {
|
||||||
$table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal("name")), $custom_field->convertUnicodeDbSlug());
|
$table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal("name")), $custom_field->convertUnicodeDbSlug());
|
||||||
|
|
Loading…
Reference in a new issue