You are here

function commerce_product_update_8212 in Commerce Core 8.2

Update the sku field definition.

File

modules/product/commerce_product.install, line 291
Install, update and uninstall functions for the Product module.

Code

function commerce_product_update_8212() {
  $definition_update_manager = \Drupal::service('entity.definition_update_manager');
  $definition_update_manager
    ->updateFieldStorageDefinition($definition_update_manager
    ->getFieldStorageDefinition('sku', 'commerce_product_variation'));
}