Missing bundle entity, entity type block_content_type, entity id basic I have updated one of my D8 sites to the latest stable version - 8.3.1 using drush up. When applying the database update, the update fails with the following error message:


  Failed: LogicException: Missing bundle entity, entity type block_content_type, entity id basic. in Drupal\Core\Entity\EntityType->getBundleConfigDependency() (line 882 of /var/www/sitename/core/lib/Drupal/Core/Entity/EntityType.php).


This has only happened on 1 site, so it's possibly a config issue specific to the site.

How do I manually create the missing bundle entity?
To get passed this error I deleted some rows in the config table:


delete from config where name in ('block_content.type.basic', core.entity_view_display.block_content.basic.default', field.field.block_content.basic.body');