function amazon_versions_schema in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 amazon_versions/amazon_versions.install \amazon_versions_schema()
- 7 amazon_versions/amazon_versions.install \amazon_versions_schema()
Implementation of hook_schema().
File
- amazon_versions/
amazon_versions.install, line 25 - Install, update and uninstall functions for Amazon Versions module.
Code
function amazon_versions_schema() {
$schema['amazon_versions'] = 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,
),
'binding' => array(
'type' => 'varchar',
'length' => 64,
),
'delta' => array(
'type' => 'int',
'default' => 0,
),
),
'primary key' => array(
'asin',
'item',
),
'indexes' => array(
'item' => array(
'item',
),
),
);
return $schema;
}