From 780a345ffcc2fa819c9547b0aa358d5a666d1e3e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Dec 2001 14:42:51 +0000 Subject: - Added some explanation to the top of the file and fixed a braino. --- update.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'update.php') diff --git a/update.php b/update.php index 5325f9354..8d26c2c5c 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,24 @@ ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL; +** sql> ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment; +** +** You'll also have to by-pass the access check near the bottom such +** that you can gain access to the form: search for "user_access()". +*/ + if (!get_cfg_var("safe_mode")) { set_time_limit(180); } @@ -249,6 +267,13 @@ 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, @@ -332,5 +357,7 @@ if (user_access(NULL)) { else { print message_access(); } + print ""; + ?> \ No newline at end of file -- cgit v1.2.3