Commit a65d7323 authored by jsacksick's avatar jsacksick Committed by jsacksick
Browse files

Issue #3224681 by darrenwh, jsacksick: Add index to state field on commerce_order.

parent 2bbdb2e4
......@@ -288,3 +288,11 @@ function commerce_order_update_8214() {
return t('The order version number field was created.');
}
/**
* Update the state field definition.
*/
function commerce_order_update_8215() {
$definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$definition_update_manager->updateFieldStorageDefinition($definition_update_manager->getFieldStorageDefinition('state', 'commerce_order'));
}
......@@ -64,7 +64,8 @@ use Drupal\profile\Entity\ProfileInterface;
* admin_permission = "administer commerce_order",
* permission_granularity = "bundle",
* field_indexes = {
* "order_number"
* "order_number",
* "state"
* },
* entity_keys = {
* "id" = "order_id",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment