function commerce_wishlist_schema in Commerce Wishlist 7.3
Same name and namespace in other branches
- 7 commerce_wishlist.install \commerce_wishlist_schema()
- 7.2 commerce_wishlist.install \commerce_wishlist_schema()
Implements hook_schema().
File
- ./
commerce_wishlist.install, line 136 - Installation hooks.
Code
function commerce_wishlist_schema() {
$schema['commerce_wishlist_share'] = array(
'description' => 'Holds URL hashes for shared, protected wish lists.',
'fields' => array(
'order_id' => array(
'description' => 'Order ID',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'url_hash' => array(
'description' => 'Hash used in the URL to identify this wish list.',
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'order_id',
),
'unique keys' => array(
'url_hash' => array(
array(
'url_hash',
8,
),
),
),
);
return $schema;
}