You are here

function commerce_promotion_update_8207 in Commerce Core 8.2

Update the code field definition.

File

modules/promotion/commerce_promotion.install, line 186
Install, update and uninstall functions for the commerce_promotion module.

Code

function commerce_promotion_update_8207() {
  $definition_update_manager = \Drupal::service('entity.definition_update_manager');
  $definition_update_manager
    ->updateFieldStorageDefinition($definition_update_manager
    ->getFieldStorageDefinition('code', 'commerce_promotion_coupon'));
}