You are here

function uc_fedex_schema in FedEx Shipping 7.2

Same name and namespace in other branches
  1. 6.2 uc_fedex.install \uc_fedex_schema()

Implements hook_schema().

File

./uc_fedex.install, line 36
Install, update, and uninstall functions for the uc_fedex module.

Code

function uc_fedex_schema() {
  $schema = array();
  $schema['uc_fedex_products'] = array(
    'description' => 'Stores product information for FedEx shipping quotes.',
    'fields' => array(
      'vid' => array(
        'description' => 'The {uc_products}.vid.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'description' => 'The {uc_products}.nid.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'pkg_type' => array(
        'description' => 'The type of package in which the product will be shipped.',
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'vid',
    ),
  );
  return $schema;
}