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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

timmillwood created an issue. See original summary.

timmillwood’s picture

2905944-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.

The last submitted patch, 2: 2905944-2-failing-test.patch, failed testing. View results

timmillwood’s picture

Status: Needs review » Closed (duplicate)