From 7d9a74d49571ce946c3515ff6d6d06a7b3973ad8 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 1 Oct 2003 21:55:19 +0000
Subject: [PATCH] - Added a note about having to create the session table
 manually when   upgrading from Drupal 4.2.0.

---
 update.php | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/update.php b/update.php
index f954524a2c04..2c35e42ff5ba 100644
--- a/update.php
+++ b/update.php
@@ -529,7 +529,7 @@ function update_page_header($title) {
   $output .= <<<EOF
       <link rel="stylesheet" type="text/css" media="print" href="misc/print.css" />
       <style type="text/css" title="layout" media="Screen">
-        @import url("misc/admin.css");
+        @import url("misc/drupal.css");
       </style>
 EOF;
   $output .= "</head><body><a href=\"http://drupal.org/\">";
@@ -595,6 +595,18 @@ function update_info() {
   print "<li><a href=\"update.php?op=update\">Upgrade to the latest version.</a></li>\n";
   print "<li>Go through the various administration pages to change the existing and new settings to your liking.</li>\n";
   print "</ol>";
+  print "Notes:";
+  print "<ol>";
+  print " <li>If you upgrade from Drupal 4.2.0, you have to create the <code>sessions</code> table manually before upgrading.  After you created the table, you'll want to log in and immediately continue the upgrade.  To create the <code>sessions</code> table, issue the following SQL command:<pre>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));</pre></li>";
+  print "</ol>";
   print update_page_footer();
 }
 
-- 
GitLab