| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: statistics_filter.install,v 1.2 2008/09/15 15:53:25 frankralf Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 8 |
|
|
| 9 |
function statistics_filter_schema() { |
function statistics_filter_schema() { |
| 10 |
$schema['statistics_filter_browsers'] = array( |
$schema['statistics_filter_browsers'] = array( |
| 11 |
|
// Table description. |
| 12 |
|
'description' => t('Stores browser details for statistics filtering'), |
| 13 |
// Field definition |
// Field definition |
| 14 |
'fields' => array( |
'fields' => array( |
| 15 |
'browser' => array( |
'browser' => array( |
| 16 |
'type' => 'varchar', |
'type' => 'varchar', |
| 17 |
'length' => '255', |
'length' => '255', |
| 18 |
'not null' => TRUE, |
'not null' => TRUE, |
| 19 |
'default' => '' |
'default' => '', |
| 20 |
|
'description' => t('Name of browser') |
| 21 |
), |
), |
| 22 |
'counter' => array( |
'counter' => array( |
| 23 |
'type' => 'int', |
'type' => 'int', |
| 24 |
'not null' => TRUE, |
'not null' => TRUE, |
| 25 |
'default' => 0, |
'default' => 0, |
| 26 |
'disp-width' => '11' |
'disp-width' => '11', |
| 27 |
|
'description' => t('Counter') |
| 28 |
), |
), |
| 29 |
'is_crawler' => array( |
'is_crawler' => array( |
| 30 |
'type' => 'int', |
'type' => 'int', |
| 31 |
'size' => 'tiny', |
'size' => 'tiny', |
| 32 |
'not null' => TRUE, |
'not null' => TRUE, |
| 33 |
'default' => 0, |
'default' => 0, |
| 34 |
'disp-width' => '1' |
'disp-width' => '1', |
| 35 |
|
'description' => t('Flag for crawlers') |
| 36 |
), |
), |
| 37 |
), |
), |
| 38 |
// Index declarations |
// Index declarations |