summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-31 13:02:53 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-31 13:02:53 +0000
commitd85e45bf64cb2715f116eae1e0ea422419c0a358 (patch)
tree9c9794f92b18ce14377ccf7a5b3fb682af693bbd /update.php
parent69f1b4d3e074cc767ebcd3a36328348a601e726a (diff)
downloadbrdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.gz
brdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.bz2
- Added "x new comments" feature. Requires a SQL update.
- Tidied up some comment related code in node.module.
Diffstat (limited to 'update.php')
-rw-r--r--update.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/update.php b/update.php
index 1cc0d1c81..f26937533 100644
--- a/update.php
+++ b/update.php
@@ -41,6 +41,7 @@ $mysql_updates = array(
"2001-12-16" => "update_14",
"2001-12-24" => "update_15",
"2001-12-30" => "update_16",
+ "2001-12-31" => "update_17",
);
// Update functions
@@ -296,6 +297,15 @@ function update_16() {
update_sql("ALTER TABLE comments CHANGE lid nid int(10) NOT NULL;");
}
+function update_17() {
+ update_sql("CREATE TABLE history (
+ uid int(10) DEFAULT '0' NOT NULL,
+ nid int(10) DEFAULT '0' NOT NULL,
+ timestamp int(11) DEFAULT '0' NOT NULL,
+ PRIMARY KEY (uid, nid)
+ );");
+}
+
// System functions
function update_sql($sql) {
global $edit;