summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-16 11:44:41 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-16 11:44:41 +0000
commita0ddc1af74d04b7c95968fcab43d4de727bae5ad (patch)
tree3a675f8fc8c112bb7ffce40e2a69a94c22f15db6 /update.php
parent90ddfb943f429308260bc1ceac8ccac8216bfb87 (diff)
downloadbrdo-a0ddc1af74d04b7c95968fcab43d4de727bae5ad.tar.gz
brdo-a0ddc1af74d04b7c95968fcab43d4de727bae5ad.tar.bz2
- Added new feature. Explanation will follow on the mailing list.
Diffstat (limited to 'update.php')
-rw-r--r--update.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/update.php b/update.php
index e791ff4b9..5325f9354 100644
--- a/update.php
+++ b/update.php
@@ -20,6 +20,7 @@ $mysql_updates = array(
"2001-12-01" => "update_11",
"2001-12-06" => "update_12",
"2001-12-09" => "update_13",
+ "2001-12-16" => "update_14",
);
// Update functions
@@ -248,11 +249,16 @@ function update_12() {
update_sql("ALTER TABLE book ADD format tinyint(2) DEFAULT '0';");
}
-function update_13() {
- update_sql("ALTER TABLE referer RENAME AS referrer;");
- update_sql("DROP TABLE blog;");
- update_sql("DROP TABLE story;");
- update_sql("DROP TABLE forum;");
+function update_14() {
+ update_sql("CREATE TABLE directory (
+ link varchar(255) DEFAULT '' NOT NULL,
+ name varchar(128) DEFAULT '' NOT NULL,
+ mail varchar(128) DEFAULT '' NOT NULL,
+ slogan text NOT NULL,
+ mission text NOT NULL,
+ timestamp int(11) DEFAULT '0' NOT NULL,
+ PRIMARY KEY (link)
+ );");
}
// System functions