Problem/Motivation

When deleting an entity from database but keeping the entity code ContentPurge::getContentEntityTypes() will find the deleted entity and will throw an error like:
Base table or view not found: 1146 Table 'db.entity_table' doesn't exist

Proposed resolution

Check the installation of the entities before trying to purge them.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

CurriedN created an issue. See original summary.

luke_nuke’s picture

Thanks for your contribution! I think it requires a test case. Do you have an idea how we could test that?

  • Luke_Nuke committed 5ca1f81 on 3.1.x authored by CurriedN
    Issue #3274597 by CurriedN, Luke_Nuke: Purge only installed entities
    
luke_nuke’s picture

Status: Active » Fixed

Branch have been supplied with tests and merged in. Thank you for your contribution! 🎉

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.