function uc_ups_schema in Ubercart 6.2
Same name and namespace in other branches
- 8.4 shipping/uc_ups/uc_ups.install \uc_ups_schema()
- 7.3 shipping/uc_ups/uc_ups.install \uc_ups_schema()
Implements hook_schema().
File
- shipping/
uc_ups/ uc_ups.install, line 30 - Install hooks for uc_ups.module.
Code
function uc_ups_schema() {
$schema = array();
$schema['uc_ups_products'] = array(
'description' => 'Stores product information for UPS 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;
}