Problem/Motivation

Brightcove itself supports a name of 255 character. For some, unknown, reason though, the brightcove module limits the field to 60 characters, which could be easily not enough.

Proposed resolution

Enlarge it to 255 characters.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner created an issue. See original summary.

dawehner’s picture

Status: Active » Needs review
FileSize
1.4 KB

There we go.

yce’s picture

@dawehner But it's not limited to 60 characters, the max_length for the name field on the Video entity is not even defined.

We left it undefined because we wanted to use the Drupal's default which is 255 characters.

dawehner’s picture

@yce
Please checkout the database schema. It certainly had a maximum length of 60 here.

dawehner’s picture

Thank you for responding that quickly.

You probably just wanted to configure the textfield widget, right? See \Drupal\Core\Field\Plugin\Field\FieldWidget\StringTextfieldWidget

yce’s picture

Ah okay, I see now, we forgot the update hook to update the schema, thanks!

Can you create a patch only for that?
Also why varchar_ascii? Why not simply varchar?

varchar_ascii: A special 'varchar_ascii' type is also available for limiting machine name field to US ASCII characters

I think we don't want that for the name field.

I the meantime if you run the drupal update:entities command it will update the schema.

dawehner’s picture

I think we don't want that for the name field.

Good point

dawehner’s picture

OH I just realized we are running on an old version of the module, with way too many patches applied.

dawehner’s picture

Status: Needs review » Fixed
FileSize
3.38 KB

We don't need the update path I guess? Well, here is a patch just for my installation, but yeah let's close the issue. You've already fixed it. Sorry for the noise.

dawehner’s picture

FileSize
3.38 KB
jan.mashat’s picture

"it seems there is no way to provide an upgrade path that keeps all your data."
https://www.drupal.org/node/2766697

dawehner’s picture

@jan.mashat
I'm pretty sure the update path which was included as part of the patch above, should fix that as expected. This is AFAIK the recommended way to update database schema and so forth, when there is already production data. There is no automation, because that would be simply too hard to write.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.