Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
commerce
Commits
a65d7323
Commit
a65d7323
authored
Aug 01, 2021
by
jsacksick
Committed by
jsacksick
Aug 01, 2021
Browse files
Issue
#3224681
by darrenwh, jsacksick: Add index to state field on commerce_order.
parent
2bbdb2e4
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/order/commerce_order.install
View file @
a65d7323
...
...
@@ -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'
));
}
modules/order/src/Entity/Order.php
View file @
a65d7323
...
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment