You are here

function commerce_order_update_8215 in Commerce Core 8.2

Update the state field definition.

File

modules/order/commerce_order.install, line 295
Install, update and uninstall functions for the Order module.

Code

function commerce_order_update_8215() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $definition_update_manager
    ->updateFieldStorageDefinition($definition_update_manager
    ->getFieldStorageDefinition('state', 'commerce_order'));
}