function commerce_payment_update_8208 in Commerce Core 8.2
Update the remote_id field definition.
File
- modules/
payment/ commerce_payment.install, line 173 - Install, update and uninstall functions for the commerce_payment module.
Code
function commerce_payment_update_8208() {
$definition_update_manager = \Drupal::service('entity.definition_update_manager');
$definition_update_manager
->updateFieldStorageDefinition($definition_update_manager
->getFieldStorageDefinition('remote_id', 'commerce_payment'));
$definition_update_manager
->updateFieldStorageDefinition($definition_update_manager
->getFieldStorageDefinition('remote_id', 'commerce_payment_method'));
}