summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-04-08 19:50:28 +0000
committerDries Buytaert <dries@buytaert.net>2002-04-08 19:50:28 +0000
commit5d9a8e34a97aaa8b70ad05800a432e7a13bf6598 (patch)
treeef5d869b5833c26a15b2747769e663b0b2d8052f /update.php
parent9e4e2dd57c2c8876fc74b659671466910d078407 (diff)
downloadbrdo-5d9a8e34a97aaa8b70ad05800a432e7a13bf6598.tar.gz
brdo-5d9a8e34a97aaa8b70ad05800a432e7a13bf6598.tar.bz2
- Made the cloud module a lot more configurable: both the update interval
and the number of bytes required for an update, can be changed now.
Diffstat (limited to 'update.php')
-rw-r--r--update.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/update.php b/update.php
index fd7ce3ccc..4b51f010d 100644
--- a/update.php
+++ b/update.php
@@ -47,7 +47,8 @@ $mysql_updates = array(
"2002-01-27" => "update_20",
"2002-01-30" => "update_21",
"2002-02-19" => "update_22",
- "2002-03-05" => "update_23"
+ "2002-03-05" => "update_23",
+ "2002-04-08" => "update_24"
);
// Update functions
@@ -337,6 +338,13 @@ function update_23() {
update_sql("CREATE TABLE search_index (word varchar(50) default NULL, lno int(10) unsigned default NULL, type varchar(16) default NULL, count int(10) unsigned default NULL, KEY lno (lno), KEY word (word));");
}
+function update_24() {
+ update_sql("ALTER TABLE site ADD refresh int(11) NOT NULL;");
+ update_sql("ALTER TABLE site ADD threshold int(11) NOT NULL;");
+ update_sql("UPDATE site SET refresh = '7200';");
+ update_sql("UPDATE site SET threshold = '50';");
+}
+
/*
** System functions
*/