Commit 0582a304 authored by Dries's avatar Dries

- Patch by Jeremy: statistics module improvements.
parent a7a5f51c
...@@ -21,7 +21,8 @@ CREATE TABLE access ( ...@@ -21,7 +21,8 @@ CREATE TABLE access (
-- --
CREATE TABLE accesslog ( CREATE TABLE accesslog (
nid int(11) unsigned default '0', title varchar(255) default NULL,
path varchar(255) default NULL,
url varchar(255) default NULL, url varchar(255) default NULL,
hostname varchar(128) default NULL, hostname varchar(128) default NULL,
uid int(10) unsigned default '0', uid int(10) unsigned default '0',
......
...@@ -19,7 +19,8 @@ CREATE TABLE access ( ...@@ -19,7 +19,8 @@ CREATE TABLE access (
-- --
CREATE TABLE accesslog ( CREATE TABLE accesslog (
nid integer default '0', title varchar(255) default NULL,
path varchar(255) default NULL,
url varchar(255) default NULL, url varchar(255) default NULL,
hostname varchar(128) default NULL, hostname varchar(128) default NULL,
uid integer default '0', uid integer default '0',
......
...@@ -66,7 +66,8 @@ ...@@ -66,7 +66,8 @@
"2004-07-07" => "update_92", "2004-07-07" => "update_92",
"2004-07-11" => "update_93", "2004-07-11" => "update_93",
"2004-07-22" => "update_94", "2004-07-22" => "update_94",
"2004-07-30" => "update_95" "2004-07-30" => "update_95",
"2004-08-04" => "update_96"
); );
function update_32() { function update_32() {
...@@ -1204,6 +1205,14 @@ function update_95() { ...@@ -1204,6 +1205,14 @@ function update_95() {
return $ret; return $ret;
} }
function update_96() {
$ret = array();
$ret[] = update_sql('ALTER TABLE {accesslog} DROP nid');
$ret[] = update_sql('ALTER TABLE {accesslog} ADD title VARCHAR(255) DEFAULT NULL');
$ret[] = update_sql('ALTER TABLE {accesslog} ADD path VARCHAR(255) DEFAULT NULL');
return $ret;
}
function update_sql($sql) { function update_sql($sql) {
$edit = $_POST["edit"]; $edit = $_POST["edit"];
$result = db_query($sql); $result = db_query($sql);
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment