Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently if a module defines a base field on an entity type it doesn't define it cannot be uninstalled if the field has data.
Proposed resolution
Implement a way for all base fields defined by a module to be updated with null values during uninstall.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2905944-2.patch | 1.5 KB | timmillwood |
#2 | 2905944-2-failing-test.patch | 1.29 KB | timmillwood |
Comments
Comment #2
timmillwood2905944-2-failing-test.patch shows the current issue, installing a module which defines a base field, adding an entity with data in that field, uninstalling the module, but gets an error because the field has data.
2905944-2.patch shows how setting the fields to
NULL
solves the issue.Comment #4
timmillwoodClosing in favour of #2282119: Make the Entity Field API handle field purging.