function commerce_order_update_8212 in Commerce Core 8.2
Update the order_number field definition.
File
- modules/
order/ commerce_order.install, line 248 - Install, update and uninstall functions for the Order module.
Code
function commerce_order_update_8212() {
$definition_update_manager = \Drupal::service('entity.definition_update_manager');
$definition_update_manager
->updateFieldStorageDefinition($definition_update_manager
->getFieldStorageDefinition('order_number', 'commerce_order'));
}