- Issue created by @lisotton
- Merge request !116Issue #3529341: Use UPDATE to populate UUID field instead of entity class → (Open) created by lisotton
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.
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.
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.
None.
N/A
N/A
N/A
Active
2.1
Code