50
50
function statistics_schema() {
51
51
$schema['accesslog'] = array(
52
'description' => t('Stores site access information for statistics.'),
52
'description' => 'Stores site access information for statistics.',
55
55
'type' => 'serial',
56
56
'not null' => TRUE,
57
'description' => t('Primary Key: Unique accesslog ID.'),
57
'description' => 'Primary Key: Unique accesslog ID.',
60
60
'type' => 'varchar',
62
62
'not null' => TRUE,
64
'description' => t('Browser session ID of user that visited page.'),
64
'description' => 'Browser session ID of user that visited page.',
67
67
'type' => 'varchar',
69
69
'not null' => FALSE,
70
'description' => t('Title of page visited.'),
70
'description' => 'Title of page visited.',
73
73
'type' => 'varchar',
75
75
'not null' => FALSE,
76
'description' => t('Internal path to page visited (relative to Drupal root.)'),
76
'description' => 'Internal path to page visited (relative to Drupal root.)',
79
79
'type' => 'varchar',
81
81
'not null' => FALSE,
82
'description' => t('Referrer URI.'),
82
'description' => 'Referrer URI.',
84
84
'hostname' => array(
85
85
'type' => 'varchar',
87
87
'not null' => FALSE,
88
'description' => t('Hostname of user that visited the page.'),
88
'description' => 'Hostname of user that visited the page.',
92
92
'unsigned' => TRUE,
93
93
'not null' => FALSE,
95
'description' => t('User {users}.uid that visited the page.'),
95
'description' => 'User {users}.uid that visited the page.',
99
99
'unsigned' => TRUE,
100
100
'not null' => TRUE,
102
'description' => t('Time in milliseconds that the page took to load.'),
102
'description' => 'Time in milliseconds that the page took to load.',
104
104
'timestamp' => array(
106
106
'unsigned' => TRUE,
107
107
'not null' => TRUE,
109
'description' => t('Timestamp of when the page was visited.'),
109
'description' => 'Timestamp of when the page was visited.',
112
112
'indexes' => array(