print"<br />Updates were attempted. If you see no failures above, you may proceed happily to the <a href=\"index.php?q=admin\">administration pages</a>.";
$form.=form_select("Perform updates from","start",(isset($selected)?$selected:-1),$dates,"This defaults to the first available update since the last update you peformed.");
print"<li>Use this script to <strong>upgrade an existing Drupal installation</strong>. You don't need this script when installing Drupal from scratch.</li>";
print"<li>Update your Drupal sources, check the notes below and <a href=\"update.php?op=update\">run the database upgrade script</a>. Don't upgrade your database twice as it may cause problems.</p></li>\n";
print" <li>If you <strong>upgrade from Drupal 4.4.x</strong>, you will need to create the <code>users_roles</code> table manually before upgrading. To create the <code>users_roles</code> table, issue the following SQL commands:
<p>MySQLspecificexample:
<pre>
CREATETABLEusers_roles(
uidint(10)unsignedNOTNULLdefault'0',
ridint(10)unsignedNOTNULLdefault'0',
PRIMARYKEY(uid,rid)
);
</pre>
</p>
<p>PostgreSQLspecificexample:
<pre>
CREATETABLEusers_roles(
uidintegerNOTNULLdefault'0',
ridintegerNOTNULLdefault'0',
PRIMARYKEY(uid,rid)
);
</pre>
</p>
</li>";
print" <li>If you <strong>upgrade from Drupal 4.3.x</strong>, you will need to add the <code>bootstrap</code> and <code>throttle</code> fields to the <code>system</code> table manually before upgrading. To add the required fields, issue the following SQL commands:
print" <li>If you <strong>upgrade from Drupal 4.2.0</strong>, you will need to create the <code>sessions</code> table manually before upgrading. After creating the table, you will want to log in and immediately continue the upgrade. To create the <code>sessions</code> table, issue the following SQL command:
print"Access denied. You are not authorized to access to this page. Please log in as the user with user ID #1. If you cannot log-in, you will have to edit <code>update.php</code> to by-pass this access check; in that case, open <code>update.php</code> in a text editor and follow the instructions at the top.";