summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-16 14:42:51 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-16 14:42:51 +0000
commit780a345ffcc2fa819c9547b0aa358d5a666d1e3e (patch)
tree607175f191eb2a7986eae2679e637211ba3c4a55
parenta0ddc1af74d04b7c95968fcab43d4de727bae5ad (diff)
downloadbrdo-780a345ffcc2fa819c9547b0aa358d5a666d1e3e.tar.gz
brdo-780a345ffcc2fa819c9547b0aa358d5a666d1e3e.tar.bz2
- Added some explanation to the top of the file and fixed a braino.
-rw-r--r--update.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/update.php b/update.php
index 5325f9354..8d26c2c5c 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,24 @@
<?php
include_once "includes/common.inc";
+/*
+** USAGE:
+**
+** - Point your browser to "http://www.site.com/update.php" and follow
+** the instructions.
+**
+** NOTES:
+**
+** - If you upgrade from Drupal 3.00, you have to update your watchdog
+** table manually before executing/starting this script. Simply do:
+**
+** sql> 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 "</html>";
+
?> \ No newline at end of file