Update Drupal Debug Hints authored by Tom Wiesing's avatar Tom Wiesing
......@@ -72,6 +72,24 @@ You might also have to delete some config files the module comes with if you wan
drush config-delete module_name.settings_name
```
# Remove Module Config
Sometimes `update.php` says:
```
Module my_already_removed_module has a schema in the key_value store, but is missing from your site.
Module update_test_0 has a schema in the key_value store, but is not installed.
```
As per [Drupal Doc](https://www.drupal.org/node/3137656), to fix this without reinstalling, you can run:
```
drush php-eval "\Drupal::keyValue('system.schema')->delete('my_already_removed_module');"
drush php-eval "\Drupal::keyValue('system.schema')->delete('update_test_0');"
```
Alternatively, you can also install the module again, deactivate and uninstall it, and then remove the files.
# Fix Revision ID Field needs to be installed
```php
drush eval "\$edum = \\Drupal::entityDefinitionUpdateManager(); \$fs = \\Drupal::service('entity_field.manager')->getFieldStorageDefinitions('wisski_individual');\$edum->updateFieldableEntityType(\Drupal::entityTypeManager()->getDefinition('wisski_individual'), \$fs);"
......
......