You are here

function commerce_shipping_update_7004 in Commerce Shipping 7

Same name and namespace in other branches
  1. 7.2 commerce_shipping.install \commerce_shipping_update_7004()

Install cache table for commerce shipping. Needed when upgrading from 1.x

File

./commerce_shipping.install, line 130
Contains updade hooks for the commerce_shipping module.

Code

function commerce_shipping_update_7004($sandbox) {
  $table = drupal_get_schema_unprocessed('system', 'cache');
  $table['description'] = 'Cache table for the temporary storage of base calculated shipping rates for orders.';
  $table['fields']['cid']['description'] = 'Primary Key: Order ID and shipping method the rates are for.';
  db_create_table('cache_commerce_shipping_rates', $table);
  return t('Created cache table for commerce shipping');
}