summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-27 13:44:04 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-27 13:44:04 +0000
commit2749c6f0ceca06e1520fe837e757f3fcd25db7f8 (patch)
tree1658398fa9cea96cf0d0290ad5a95f0ef3af1a65
parentf8329dd47cacd51c9d421c980064d0cd7fbc584e (diff)
downloadbrdo-2749c6f0ceca06e1520fe837e757f3fcd25db7f8.tar.gz
brdo-2749c6f0ceca06e1520fe837e757f3fcd25db7f8.tar.bz2
- like the watchdog changes the system changes have to be applied before
the update script will run properly. Added this requirement to the comments.
-rw-r--r--update.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/update.php b/update.php
index 9762f35fc..9bfeaa060 100644
--- a/update.php
+++ b/update.php
@@ -12,8 +12,9 @@ include_once "includes/common.inc";
** - 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;
+** ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL;
+** ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment;
+** CREATE TABLE system (filename varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '', type varchar(255) NOT NULL default '', description varchar(255) NOT NULL default '', status int(2) NOT NULL default '0', PRIMARY KEY (filename));
**
** 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()".
@@ -351,10 +352,6 @@ function update_24() {
function update_25() {
update_sql("CREATE TABLE `system` (filename varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '', type varchar(255) NOT NULL default '', description varchar(255) NOT NULL default '', status int(2) NOT NULL default '0', PRIMARY KEY (filename));");
- update_sql("REPLACE system SET name = 'drupal', type = 'module', filename = 'drupal.module', status = '1';");
- update_sql("REPLACE system SET name = 'system', type = 'module', filename = 'system.module', status = '1';");
- update_sql("REPLACE system SET name = 'user', type = 'module', filename = 'user.module', status = '1';");
- update_sql("REPLACE system SET name = 'watchdog', type = 'module', filename = 'watchdog.module', status = '1';");
update_sql("UPDATE users SET theme = LOWER(theme);");
}