function amazon_similar_schema in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 amazon_similar/amazon_similar.install \amazon_similar_schema()
- 7 amazon_similar/amazon_similar.install \amazon_similar_schema()
Implementation of hook_schema().
File
- amazon_similar/
amazon_similar.install, line 26 - Install, update and uninstall functions for Amazon Similar module.
Code
function amazon_similar_schema() {
$schema['amazon_similar'] = array(
'fields' => array(
'asin' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'item' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'delta' => array(
'type' => 'int',
'default' => 0,
),
),
'primary key' => array(
'asin',
'item',
),
'indexes' => array(
'item' => array(
'item',
),
),
);
return $schema;
}