summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.schema
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-25 12:46:46 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-25 12:46:46 +0000
commit3cafffe63f70f418d0b6ca32ac5e0f3e27dceb41 (patch)
treecd59a40556a084f35b7b5a3bc3caa50874087541 /modules/statistics/statistics.schema
parentae762838c0e92bded86370103df4583874c50da7 (diff)
downloadbrdo-3cafffe63f70f418d0b6ca32ac5e0f3e27dceb41.tar.gz
brdo-3cafffe63f70f418d0b6ca32ac5e0f3e27dceb41.tar.bz2
- Killer patch #144765 by bjaspan, frando et al: schema API 1 hits core. Oh, behave.
Diffstat (limited to 'modules/statistics/statistics.schema')
-rw-r--r--modules/statistics/statistics.schema23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/statistics/statistics.schema b/modules/statistics/statistics.schema
new file mode 100644
index 000000000..a866c0a5f
--- /dev/null
+++ b/modules/statistics/statistics.schema
@@ -0,0 +1,23 @@
+<?php
+// $Id$
+
+function statistics_schema() {
+ $schema['accesslog'] = array(
+ 'fields' => array(
+ 'aid' => array('type' => 'serial', 'not null' => TRUE),
+ 'sid' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''),
+ 'title' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
+ 'path' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
+ 'url' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
+ 'hostname' => array('type' => 'varchar', 'length' => 128, 'not null' => FALSE),
+ 'uid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0),
+ 'timer' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
+ 'timestamp' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)
+ ),
+ 'indexes' => array('accesslog_timestamp' => array('timestamp')),
+ 'primary key' => array('aid'),
+ );
+
+ return $schema;
+}
+