Fix: Ne prend pas les script .# dans la migration

This commit is contained in:
Laurent Destailleur 2005-12-08 11:42:09 +00:00
parent 72bb91c8ee
commit ca806216b7

View File

@ -121,7 +121,7 @@ if (isset($_GET["action"]) && $_GET["action"] == "upgrade")
{ {
if ($choix==1) $dir = "../../mysql/migration/"; if ($choix==1) $dir = "../../mysql/migration/";
else $dir = "../../pgsql/migration/"; else $dir = "../../pgsql/migration/";
$migfile='1.1.0-2.0.0.sql'; $migfile='^1.1.0-2.0.0.sql$';
$i = 0; $i = 0;
$ok = 0; $ok = 0;
@ -183,7 +183,7 @@ if (isset($_GET["action"]) && $_GET["action"] == "upgrade")
else else
{ {
print '<tr><td>'.$langs->trans("Request").' '.$i.'</td>'; print '<tr><td>'.$langs->trans("Request").' '.$i.'</td>';
print '<td>'.$langs->trans("Error")." ".$db->errno()." ".$db->error()."</td>"; print '<td>'.$langs->trans("Error")." ".$db->errno()." ".$db->error()."<br>".$sql."</td>";
print '</tr>'; print '</tr>';
$error++; $error++;
} }