From a0ddc1af74d04b7c95968fcab43d4de727bae5ad Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Dec 2001 11:44:41 +0000 Subject: - Added new feature. Explanation will follow on the mailing list. --- update.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'update.php') 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 -- cgit v1.2.3