function seotools_schema in Drupal SEO Tools 7
Same name and namespace in other branches
- 6 seotools.install \seotools_schema()
Implements hook_schema().
File
- ./
seotools.install, line 23
Code
function seotools_schema() {
return array();
$schema['seotools_cache'] = array(
'description' => 'Creates database table to store keyword data.',
'fields' => array(
'cid' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
'description' => 'cache id.',
),
'data' => array(
'type' => 'text',
'description' => 'stores the cached data',
),
'start_date' => array(
'type' => 'char',
'length' => '10',
'not null' => TRUE,
'default' => '',
'description' => 'start date of query',
),
'end_date' => array(
'type' => 'char',
'length' => '10',
'not null' => TRUE,
'default' => '',
'description' => 'end date of query',
),
'records' => array(
'type' => 'int',
'size' => 'small',
'description' => 'number of records in data',
),
),
'indexes' => array(
'cid' => array(
'cid',
),
'start_date' => array(
'start_date',
),
),
);
return $schema;
}