diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php index 8954319..70df7b1 100644 --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php @@ -619,8 +619,7 @@ protected function getEntitySchemaData(ContentEntityTypeInterface $entity_type, // Exclude data generated from field storage definitions, we will check // that separately. if ($field_schema_identifiers && !empty($table_schema[$key])) { - $data = array_diff_key($table_schema[$key], $field_schema_identifiers); - $table_schema[$key] = array_intersect_key($table_schema[$key], $data); + $table_schema[$key] = array_diff_key($table_schema[$key], $field_schema_identifiers); } } $schema_data[$table_name] = array_filter($table_schema);