Patch Generated with the help of an LLM

Problem/Motivation

After updating from 1.0.1 to 1.1.1, the status report of our site shows:

Errors found: Entity/field definitions
Mismatched entity and/or field definitions. The following changes were detected in the entity type and field definitions.
Content
- The node.field_menu field needs to be updated.

Steps to reproduce

1. Update to 1.1.1 on a site that has content with entity_reference_hierarchy fields and the fields have values.
2. Visit the status report page to find the error message.

Proposed resolution

Add a hook_update_N() that, for every field of this type:
1. Calls changeField() on the depth column in the data and revision tables to apply the new spec
2. Updates the matching entity.storage_schema.sql entry (.field_schema_data.).

Patch file attached.

CommentFileSizeAuthor
#2 3639321-erh-depth-schema-update-1.patch2.81 KBkevin w

Comments

kevin w created an issue. See original summary.

kevin w’s picture

StatusFileSize
new2.81 KB