diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-07-13 13:14:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-07-13 13:14:25 +0000 |
commit | 1c75a210bdf85afeee33952fd50c1951999fecb4 (patch) | |
tree | 340e364ba1ea0e4f41c2cd7c80e66543caff8304 /modules/statistics/statistics.install | |
parent | e4e416d1f7037dbee8e06096a6c41368d011599c (diff) | |
download | brdo-1c75a210bdf85afeee33952fd50c1951999fecb4.tar.gz brdo-1c75a210bdf85afeee33952fd50c1951999fecb4.tar.bz2 |
- Patch #68926 by chx, jeremy, steven, eaton, webchick, amazon, neil, nedjo et al: an initial install system for Drupal core.
Diffstat (limited to 'modules/statistics/statistics.install')
-rw-r--r-- | modules/statistics/statistics.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install new file mode 100644 index 000000000..c6dd69081 --- /dev/null +++ b/modules/statistics/statistics.install @@ -0,0 +1,21 @@ +<?php + +function statistics_install() { + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + db_query("CREATE TABLE {accesslog} ( + aid int(10) NOT NULL auto_increment, + sid varchar(32) NOT NULL default '', + title varchar(255) default NULL, + path varchar(255) default NULL, + url varchar(255) default NULL, + hostname varchar(128) default NULL, + uid int(10) unsigned default '0', + timer int(10) unsigned NOT NULL default '0', + timestamp int(11) unsigned NOT NULL default '0', + KEY accesslog_timestamp (timestamp), + PRIMARY KEY (aid) + ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); + } +}
\ No newline at end of file |