Skip to content
Snippets Groups Projects
Commit 1e5ad498 authored by Jonathan Sacksick's avatar Jonathan Sacksick
Browse files

Issue #3268810 by jsacksick: Add an index to commerce_log.created.

parent 37c4800e
Branches
Tags
7 merge requests!418Issue #3511232 by ccjjmartin: Fix add to cart dropdown when only one non-default variation type is provided,!379Issue #3491248 Validation is breaking the amount number format decimal point,!375Issue #3413020 by czigor: Using a translatable string as a category for field...,!357Issue #2914933: Add service tags to order-related interfaces,!344Resolve #3107602 "Product attributes do not update visually when switching variations",!343Resolve #3107602 "Product attributes do not update visually when switching variations",!342Issue #3476581 by josephr5000: add OrderItemLabelEvent
......@@ -46,3 +46,13 @@ function commerce_log_update_8201() {
// Regenerate entity type indexes.
$definition_update_manager->updateEntityType($entity_type);
}
/**
* Add an index to commerce_log.created.
*/
function commerce_log_update_8202() {
$definition_update_manager = \Drupal::service('entity.definition_update_manager');
// Regenerate entity type indexes.
$entity_type = \Drupal::entityTypeManager()->getDefinition('commerce_log');
$definition_update_manager->updateEntityType($entity_type);
}
......@@ -20,6 +20,7 @@ class LogStorageSchema extends SqlContentEntityStorageSchema {
'source_entity_id',
'source_entity_type',
],
'created' => ['created'],
];
return $schema;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment