If the installation can only find an older version of the "full" installer, then

automatically run the update script to get up to the newest version
This commit is contained in:
james 2006-10-26 02:31:50 +00:00
parent 9082d905b3
commit ba0714fba3

View File

@ -113,11 +113,16 @@ mysql_select_db($DBNAME);
system("mysql -h$DBHOST -u$DBUSER -p$DBPASS $DBNAME <db/db.full.$x.sql");
echo "<b>Done! installed database version $x</b><br />\n";
echo "<b>NOTE: YOU WILL NEED TO RUN THE db_update.php SCRIPT TO MANUALLY UPDATE THE DATABASE FROM $x to $dbcodeversion</b><br />";
//now update the db version in the database
mysql_query("UPDATE config SET val='$x' WHERE var='DBVERSION' AND year='0'");
echo "<b>Attempting to update database using standard update script to update from $x to $dbcodeversion<br />";
echo "<br />Please scroll to the bottom of this page for the link to the next step of the installation process.<br /></b>";
chdir ("db");
include "db_update.php";
chdir ("../");
echo "<br />";
echo "<b>Done!</b><br />";
echo "<a href=\"install3.php\">Proceed to installation step 3</a><br />";