diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php index 132ea06..fbabc57 100644 --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php @@ -9,7 +9,7 @@ use Drupal\Component\Utility\String; use Drupal\Core\Database\Connection; -use Drupal\Core\Database\DatabaseExceptionWrapper; +use Drupal\Core\Database\DatabaseException; use Drupal\Core\Entity\ContentEntityTypeInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityStorageException; @@ -391,7 +391,7 @@ public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $ throw new FieldStorageDefinitionUpdateForbiddenException('Unable to delete a field with data that cannot be purged.'); } } - catch (DatabaseExceptionWrapper $e) { + catch (DatabaseException $e) { // This may happen when changing field storage schema, since we are not // able to use a table mapping matching the passed storage definition. // @todo Revisit this once we are able to instantiate the table mapping