function commerce_shipping_schema in Commerce Shipping 7
Same name and namespace in other branches
- 7.2 commerce_shipping.install \commerce_shipping_schema()
Implements hook_schema().
File
- ./
commerce_shipping.install, line 10 - Contains updade hooks for the commerce_shipping module.
Code
function commerce_shipping_schema() {
// Install the cache table used in 2.x for compatibility, since upgrade
// hooks wont be run on a fresh install.
$schema = array();
$schema['cache_commerce_shipping_rates'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_commerce_shipping_rates']['description'] = 'Cache table for the temporary storage of base calculated shipping rates for orders.';
$schema['cache_commerce_shipping_rates']['fields']['cid']['description'] = 'Primary Key: Order ID and shipping method the rates are for.';
return $schema;
}