head	1.10;
access;
symbols
	TIGRIS_1_1_0RC2:1.5.2.2.4.1
	TIGRIS_1_1_0RC1:1.5.2.2.4.1
	TIGRIS_1_1:1.5.2.2.4.1.0.2
	TIGRIS_1_0_8:1.5.2.2.4.1
	TIGRIS_1_0_8RC3:1.5.2.2.4.1
	TIGRIS_1_0_8RC2:1.5.2.2.4.1
	TIGRIS_1_0_8RC1:1.5.2.2.4.1
	TIGRIS_1_0_7:1.5.2.2.4.1
	TIGRIS_1_0_7RC3:1.5.2.2.4.1
	TIGRIS_1_0_7RC2:1.5.2.2.4.1
	TIGRIS_1_0_7RC1:1.5.2.2.4.1
	TIGRIS_1_0_6:1.5.2.2.4.1
	TIGRIS_1_0_6RC5:1.5.2.2.4.1
	TIGRIS_1_0_6RC4:1.5.2.2.4.1
	TIGRIS_1_0_6RC3:1.5.2.2.4.1
	TIGRIS_1_0_6RC2:1.5.2.2.4.1
	TIGRIS_1_0_6RC1:1.5.2.2.4.1
	TIGRIS_1_0_5:1.5.2.2.4.1
	TIGRIS_1_0_5RC6:1.5.2.2.4.1
	TIGRIS_1_0_5RC5:1.5.2.2.4.1
	TIGRIS_1_0_5RC4:1.5.2.2.4.1
	TIGRIS_1_0_5RC3:1.5.2.2.4.1
	TIGRIS_1_0_5RC2:1.5.2.2.4.1
	TIGRIS_1_0_5RC1:1.5.2.2.4.1
	TIGRIS_1_0_4:1.5.2.2
	TIGRIS_1_0_3:1.5.2.2
	TIGRIS_1_0_2:1.5.2.2
	TIGRIS_1_0_1:1.5.2.2
	TIGRIS_1_0:1.5.2.2.0.4
	TIGRIS_1_0_0:1.5.2.2
	TIGRIS_1_0_0_RC1:1.5.0.2;
locks; strict;
comment	@# @;


1.10
date	2001.06.28.00.35.15;	author ms;	state dead;
branches;
next	1.9;

1.9
date	2001.06.15.20.50.06;	author stack;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.13.02.24.36;	author stack;	state Exp;
branches;
next	1.7;

1.7
date	2001.04.05.17.32.18;	author leonardr;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.31.05.50.38;	author edk;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.26.21.17.25;	author leonardr;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2001.03.26.03.08.41;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.23.01.04.15;	author kmaples;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.17.21.30.35;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.16.17.56.03;	author leonardr;	state Exp;
branches;
next	;

1.5.2.1
date	2001.03.31.06.05.46;	author edk;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2001.04.05.17.36.08;	author dlr;	state Exp;
branches
	1.5.2.2.4.1;
next	;

1.5.2.2.4.1
date	2001.05.13.03.24.30;	author jrobbins;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Factored out the migrate scripts in each migration path into master migrate.
upgrade_tigris calls migrate which in turn does the proper actions for the migration path to upgrade.
Added ScriptOrder.lst to each migration path which lists scripts to run, takes relative or full paths.
migrateIZ is the script I wasnt easily able to factor away from the old classic-1.0.0/migrate script so it gets called in the ScriptOrder.lst.
@
text
@#/bin/sh

DIR=__SANDBOX__/helm/scripts/migration/0.9.2-1.0.0

echo Started migration from from 0.9.2 to 1.0.0.

echo Running LoadOrder SQL scripts.
for i in `cat LoadOrder.lst`
do
 echo "Running $i against $DATABASE_HOST"
 mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
    --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
    __DATABASE_NAME__ < $DIR/$i
done 
echo Completed LoadOrder SQL scripts.

echo Removing actions from roles using Perl script.
$DIR/removeRoleActions.pl
echo Perl script completed.

echo Running upgrade_issues_dbs.
$DIR/upgrade_issues_dbs
echo Completed upgrade_issues_dbs.

echo Running upgrade_anzu.
$DIR/upgrade_anzu
echo Completed running upgrade_anzu

echo Running upgrade_cvsroot_config.sh
$DIR/upgrade_cvsroot_config.sh
echo Completed running upgrade_cvsroot_config.sh

echo Completed migration from 0.9.2 to 1.0.0.
@


1.9
log
@Add the running of upgrade_cvsroot_config.sh.
@
text
@@


1.8
log
@Make migrations work against a remote database.
@
text
@d29 4
@


1.7
log
@How about running the Perl script after the table it alters has the right name.
@
text
@d10 4
a13 2
 echo "Running $i"
 mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ __DATABASE_NAME__ < $DIR/$i
@


1.6
log
@handle calling upgrade_anzu
@
text
@a6 4
echo Removing actions from roles using Perl script.
$DIR/removeRoleActions.pl
echo Perl script completed.

d14 4
@


1.5
log
@Moved removal of actions from roles into a perl script.
@
text
@d23 4
@


1.5.2.1
log
@call upgrade_anzu
@
text
@a22 4
echo Running upgrade_anzu.
$DIR/upgrade_anzu
echo Completed running upgrade_anzu

@


1.5.2.2
log
@Merged in leonardr bug fix from HEAD:

How about running the Perl script after the table it alters has the
right name.
@
text
@d7 4
a17 4

echo Removing actions from roles using Perl script.
$DIR/removeRoleActions.pl
echo Perl script completed.
@


1.5.2.2.4.1
log
@buddying stacks changes from HEAD to branch
@
text
@d10 2
a11 4
 echo "Running $i against $DATABASE_HOST"
 mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
    --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
    __DATABASE_NAME__ < $DIR/$i
@


1.4
log
@added progress messages to help pin down errors
@
text
@d3 1
d5 1
a5 1
echo started migration from from 092 to 100
d7 3
a9 1
echo running LoadOrder sql scripts
d11 1
a11 1
DIR=__SANDBOX__/helm/scripts/migration/0.9.2-1.0.0
d17 1
d19 1
a19 4
echo completed LoadOrder sql scripts

echo starting upgrade_issues_dbs

d21 1
d23 1
a23 1
echo completed 092 to 100
@


1.3
log
@Adding IZ upgrade scripts.  These superceede those scripts which had been in
issuezilla/patches/
@
text
@d2 6
d15 4
d21 1
@


1.2
log
@These hook scripts should be directly invokable.
@
text
@d2 1
d6 1
a6 1
 mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ __DATABASE_NAME__ < $i
d8 3
@


1.1
log
@Fixed much invalid SQL and wrote a simple migration script.
@
text
@d1 1
@

