I'm not sure how or why this is the case, but on my site, some entities (perhaps those which were created before Multiversion was installed) have NULL for "_deleted" and "workspace". I noticed that when running "drush mdt ENTITYTYPE" on those entity types, it deletes all of those items. This led to busted content that referenced them.

To work around this, I had to run these queries before uninstalling Multiversion:

UPDATE media_field_data SET workspace = 1, _deleted = 0 WHERE _deleted IS NULL;
UPDATE media_field_revision SET _deleted = 0 WHERE _deleted IS NULL;
UPDATE taxonomy_term_field_data SET workspace = 1, _deleted = 0 WHERE _deleted IS NULL;
UPDATE taxonomy_term_field_revision SET _deleted = 0 WHERE _deleted IS NULL;
UPDATE crop_field_data SET workspace = 1, _deleted = 0 WHERE _deleted IS NULL;
UPDATE crop_field_revision SET _deleted = 0 WHERE _deleted IS NULL;

Can the uninstaller skip over these? Or warn the user that they exist and will be deleted?

Comments

mcrittenden created an issue. See original summary.

mcrittenden’s picture

Title: Uninstalling seems to delete entities where _deleted is NULL » Uninstalling seems to delete entities where "_deleted" or "workspace" columns are NULL
Issue summary: View changes