VERS='5.4.66a'

echo "Mise a jour de la base de donnees pour Version $VERS"

isql - - <<EOT

database gc;

UPDATE 
  gc_parsys 
SET 
  version='$VERS';

ALTER TABLE
  gc_art
ADD (
  atpxcif   FLOAT, 
  atpxfr    FLOAT, 
  attxcons  FLOAT, 
  atpxunit  FLOAT
);

UPDATE
  gc_art
SET
  atpxcif = 0, 
  atpxfr = 0, 
  attxcons = 0,
  atpxunit = 0
  ;

CLOSE DATABASE;

EOT

chmod 666 $DBPATH/gc.dbs/*.idx
chmod 666 $DBPATH/gc.dbs/*.dat

echo "Mise a jour terminee"
