Index: update.php =================================================================== RCS file: /cvs/drupal/drupal/update.php,v retrieving revision 1.152 diff -u -F^f -r1.152 update.php --- update.php 17 Aug 2005 01:44:14 -0000 1.152 +++ update.php 25 Aug 2005 00:56:21 -0000 @@ -84,79 +95,6 @@ function update_info_page() { $output .= "
  • Update your Drupal sources, check the notes below and run the database upgrade script. Don't upgrade your database twice as it may cause problems.
  • \n"; $output .= "
  • Go through the various administration pages to change the existing and new settings to your liking.
  • \n"; $output .= ""; - $output .= "Notes:"; - $output .= "
      "; - $output .= "
    1. If you upgrade from Drupal 4.4.x, you will need to create the users_roles and locales_meta tables manually before upgrading. To create these tables, issue the following SQL commands: - -

      MySQL specific example:

      -
      -  CREATE TABLE users_roles (
      -    uid int(10) unsigned NOT NULL default '0',
      -    rid int(10) unsigned NOT NULL default '0',
      -    PRIMARY KEY (uid, rid)
      -  );
      -  CREATE TABLE locales_meta (
      -    locale varchar(12) NOT NULL default '',
      -    name varchar(64) NOT NULL default '',
      -    enabled int(2) NOT NULL default '0',
      -    isdefault int(2) NOT NULL default '0',
      -    plurals int(1) NOT NULL default '0',
      -    formula varchar(128) NOT NULL default '',
      -    PRIMARY KEY  (locale)
      -  );
      -  
      - -

      PostgreSQL specific example:

      -
      -  CREATE TABLE users_roles (
      -    uid integer NOT NULL default '0',
      -    rid integer NOT NULL default '0',
      -    PRIMARY KEY (uid, rid)
      -  );
      -  CREATE TABLE locales_meta (
      -    locale varchar(12) NOT NULL default '',
      -    name varchar(64) NOT NULL default '',
      -    enabled int4 NOT NULL default '0',
      -    isdefault int4 NOT NULL default '0',
      -    plurals int4 NOT NULL default '0',
      -    formula varchar(128) NOT NULL default '',
      -    PRIMARY KEY  (locale)
      -  );
      -  
      -
    2. "; - $output .= "
    3. If you upgrade from Drupal 4.3.x, you will need to add the bootstrap and throttle fields to the system table manually before upgrading. To add the required fields, issue the following SQL commands: - -

      MySQL specific example:

      -
      -  ALTER TABLE system ADD throttle tinyint(1) NOT NULL DEFAULT '0';
      -  ALTER TABLE system ADD bootstrap int(2);
      -  
      - -

      PostgreSQL specific example:

      -
      -  ALTER TABLE system ADD throttle smallint;
      -  ALTER TABLE system ALTER COLUMN throttle SET DEFAULT '0';
      -  UPDATE system SET throttle = 0;
      -  ALTER TABLE system ALTER COLUMN throttle SET NOT NULL;
      -  ALTER TABLE system ADD bootstrap integer;
      -  
      -
    4. "; - $output .= "
    5. If you upgrade from Drupal 4.2.0, you will need to create the sessions table manually before upgrading. After creating the table, you will want to log in and immediately continue the upgrade. To create the sessions table, issue the following SQL command: - -

      MySQL specific example:

      -
      -  CREATE TABLE sessions (
      -  uid int(10) unsigned NOT NULL,
      -  sid varchar(32) NOT NULL default '',
      -  hostname varchar(128) NOT NULL default '',
      -  timestamp int(11) NOT NULL default '0',
      -  session text,
      -  KEY uid (uid),
      -  KEY sid (sid(4)),
      -  KEY timestamp (timestamp));
      -  
      -
    6. "; - $output .= "
    "; $output .= '

    For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

    '; return $output; }