@ -175,12 +183,12 @@ function _do_upgrade($current_version) {
if ($current_version >= $target_version) {
# already up to date
echo"<p>Database is up to date: $current_version/$target_version </p>";
echo_out("<p>Database is up to date: $current_version/$target_version </p>");
return true;
}
echo"<p>Updating database:</p><p>- old version: $current_version; target version: $target_version</p>\n";
echo"<divstyle='color:#999'> (If the update doesn't work, run setup.php?debug=1 to see the detailed error messages and SQL queries.)</div>";
echo_out("<p>Updating database:</p><p>- old version: $current_version; target version: $target_version</p>\n");
echo_out("<divstyle='color:#999'> (If the update doesn't work, run setup.php?debug=1 to see the detailed error messages and SQL queries.)</div>");
if (db_sqlite() && $current_version <1824){
// Fast forward to the first revision supporting SQLite
@ -195,34 +203,34 @@ function _do_upgrade($current_version) {
$function_sqlite = $function . "_sqlite";
if (function_exists($function)) {
echo"<p>updating to version $i (all databases)...";
echo_out("<p>updating to version $i (all databases)...");