Fix bug in the update scripts

This commit is contained in:
sparkyx 2005-03-15 18:46:17 +00:00
parent 38cd7bdee8
commit cb6834c2fb
5 changed files with 7 additions and 5 deletions

View file

@ -277,7 +277,7 @@ for ($e=0;$e < $MaxDossier;$e++) {
$db_row=pg_fetch_array($Resdossier,$e);
echo "Patching ".$db_row['dos_name']."<hr>";
$db=DbConnect($db_row['dos_id'],'dossier');
if ( GetVersion($db) == 4 ) {
if ( GetVersion($db) == 3 ) {
ExecuteScript($db,'sql/patch/upgrade4.sql');
$sql="select jrn_def_id from jrn_def ";