Problem/Motivation

Thank you very much for this GREAT module first!

I just had to clean up a super old Drupal 8 site with a lot of legacy modules which were not very stable in the old days. For example the (still messy) RNG module left over

node entity type :
The field node.rng_status has to be uninstalled,
The field node.rng_reply_to has to be uninstalled.
The field node.rng_registrants_duplicate has to be uninstalled

but the table had been deleted on module uninstall.

So the module fails with the following errors:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'usr_web10_preview_ife.dr801_node_revision__rng_status' doesn't exist: UPDATE {node_revision__rng_status} SET deleted=:db_update_place
holder_0; Array
(
[:db_update_placeholder_0] => 1
)

In Statement.php line 59:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'usr_web10_preview_ife.dr801_node_revision__rng_status' doesn't exist

Steps to reproduce

Proposed resolution

In case the related table doesn't exist anymore, it would help a lot if this module could catch the exception and ask, if the schema entries should be removed anyway as the table was already removed.

A bit like in windows, if a program was already uninstalled, but was still lists in programs list and windows (sometimes) asks, if the program should be removed from the list as it seems to be removed already.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Anybody created an issue.