Field instance: entity_type field has 32 characters lenght limit

Created on 19 February 2018, over 6 years ago
Updated 15 April 2024, 7 months ago

32 symbols is not enougth for entity_type in field instance configuration

In field module schema we have 32 characters length restriction and 128 in field_sql_storage module. I understand field_name field name length restriction (because of table name length limit) but here is no reason to do it for entity_type.

Proposed resolution

Make entity_type field (in field_config_instance table) lenght = 128 characters. Like in field_sql_storage module.

User interface changes

None.

API changes

None.

Data model changes

$schema['field_config_instance']['entity_type']['length'] will be changed from 32 to 128

🐛 Bug report
Status

Closed: works as designed

Version

7.0 ⚰️

Component
Field 

Last updated about 15 hours ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    I agree with @poker10: It does not make sense to allow 128 characters for the entity type in Drupal 7, when the limit is still 32 characters in Drupal 8, 9, and 10. Since it has been open as bug report, I would close it as works as designed.

Production build 0.71.5 2024