Bento box search with multiple targets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

12 years ago
<?php
/**
* @file
* Installation hooks.
*/
/**
* Implements hook_schema().
*/
function roblib_search_schema() {
$schema = array();
$schema['roblib_search_log'] = array(
'description' => 'stores search data such as date/time ip etc.',
'fields' => array(
'sid' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'unique id for each row',
),
'query' => array(
'description' => 'the search string',
'type' => 'varchar',
'not null' => TRUE,
'length' => 1024,
),
'searched_date' => array(
'description' => 'the date the search request occured',
'type' => 'varchar',
'mysql_type' => 'DATETIME',
'not null' => TRUE,
),
'ipaddress' => array(
'description' => 'the ip or domain of the users computer ',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
),
'primary key' => array('sid'),
);
return $schema;
}