Updating from 2.0.0 to 2.1.0-alpha1 make parent_entity_type_id and parent_entity_id NULL

Created on 10 June 2025, 18 days ago

Problem/Motivation

During the upgrade of version 2.0.0 to 2.1.0-alpha1, I had the report broken. After some investigation I noticed that both fields parent_entity_type_id and parent_entity_id are NULL for all rows. After some investigation, I noticed that the linkchecker_update_8004 is causing the problem, when the save method is called, it clear the value of fields entity_id__target_type and entity_id__target_id, so in linkchecker_update_8006 it won't be possible to copy values to the new fields.

Steps to reproduce

Install the version 2.0.0 of the module, create some entries in the table linkchecker_link and upgrade the module to 2.1.0-alpha1.

Proposed resolution

Change the linkchecker_update_8004 to use UPDATE query instead of loading the entity and using the save method, so Drupal will not make fields that does not exist anymore as NULL.

Remaining tasks

None.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇧🇪Belgium lisotton Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024