head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.07.30.18.44.24;	author leonardr;	state dead;
branches;
next	1.1;

1.1
date	2001.07.05.21.38.33;	author ms;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Moved stuff from 1.1.0 migration directory to 1.2.0 directory to reflect actual future versioning.
@
text
@#/bin/sh

DIR=__SANDBOX__/helm/scripts/migration/1.1.0

# Perform the issues-related upgrades:
IZDIR=__SANDBOX__/issuezilla

echo Determining issues databases to upgrade
if [ 'x__IZ_MULTIPLE_PROJECT_DATABASES__' = 'xtrue' ] 
then
  IZDBS=`mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
    --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
    -e 'SHOW DATABASES' | egrep "^__IZ_DATABASE_NAME__[_][0-9]+$"`
else
  IZDBS='__IZ_DATABASE_NAME__'
fi

for db in $IZDBS
do
  for sql in `cat $DIR/LoadOrderIZ.lst`
  do
    echo Running $sql against database $db
    mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
        --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
        $db < $DIR/$sql  
    
    if [ -f $IZDIR/data/$db/params ]
    then
      echo Deleting $IZDIR/data/$db/params
      rm $IZDIR/data/$db/params
    fi   
  done  
done
echo Completed upgrading issues databases
@


1.1
log
@moved stuff from migrate.in to migrateIZ, and put calls to all scripts in ScriptOrder.lst. Changed to use latest migration system
@
text
@@

