You are here

function commerce_tax_ui_update_7001 in Commerce Core 7

Change the name of the property indicating the Tax module should create a default Rules component for tax rates.

File

modules/tax/commerce_tax_ui.install, line 193

Code

function commerce_tax_ui_update_7001() {
  $spec = array(
    'description' => 'Boolean indicating whether or not this rate should have a default Rules component for applying it to products.',
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  );

  // Change the rules_component column to default_rules_component.
  db_change_field('commerce_tax_rate', 'rules_component', 'default_rules_component', $spec);
  return t('The tax rate table has been updated properly.');
}