You are here

function commerce_customer_update_7102 in Commerce Core 7

Allow NULL values for revision_id on {commerce_customer} to avoid locking issues.

File

modules/customer/commerce_customer.install, line 258

Code

function commerce_customer_update_7102() {
  db_change_field('commerce_customer_profile', 'revision_id', 'revision_id', array(
    'description' => 'The current {commerce_customer_profile_revision}.revision_id version identifier.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
  ));
  return t('Schema for the commerce_customer_profile table has been updated.');
}