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


1.11
date	2001.07.05.22.21.39;	author leonardr;	state Exp;
branches;
next	1.10;

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

1.9
date	2001.06.29.00.57.49;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.19.00.09.15;	author leonardr;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.11.23.04.50;	author elicia;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.05.22.36.19;	author kmaples;	state Exp;
branches;
next	1.5;

1.5
date	2001.05.17.17.47.22;	author edk;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.13.02.24.36;	author stack;	state Exp;
branches;
next	1.3;

1.3
date	2001.05.11.19.38.56;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.01.21.47.22;	author leonardr;	state Exp;
branches;
next	1.1;

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


desc
@@


1.11
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@#/bin/sh

DIR=__SANDBOX__/helm/scripts/migration/1.1.0

echo Started migration to 1.1.0

echo 
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.

#Set IS_PUBLIC and get rid of *all public projects in domain
$DIR/publicProjectMigrate.pl

#Merge PROJECT_DOWNLOADS into PROJECT_DOCUMENTS table.
#We are getting rid of the DOWNLOADS table and transfering
#Existing data and files to DOCUMENTS
$DIR/projectDownloadMigrate.pl 

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

echo 
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

echo 
echo Getting rid of HELM_DOMAIN table
mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
    --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
    __DATABASE_NAME__ < $DIR/helmDomainDrop.sql

echo 
echo Removing obsolete actions
$DIR/deleteActions.pl 

echo
echo Adding HELM_LICENSE table
mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ \
    --host=__DATABASE_HOST__ --port=__DATABASE_PORT__ \
    __DATABASE_NAME__ < $DIR/helmLicenseAdd.sql
echo Populating HELM_LICENSE table
$DIR/moveLicenseIntoDatabase.pl


echo 
echo Completed migration to 1.1.0
@


1.10
log
@moved stuff from migrate.in to migrateIZ, and put calls to all scripts in ScriptOrder.lst. Changed to use latest migration system
@
text
@d66 10
a75 1
$DIR/deleteActions.pl
@


1.9
log
@Implemented basic project group and category nesting.
@
text
@@


1.8
log
@Rearranged scripts to get rid of errors.
@
text
@d65 4
@


1.7
log
@The ProjectDocument.sql file now upgrades the HELM_PROJECTDOCUMENT table fields and updates existing data with default values for new fields.

The ProjectDownload.sql file has been replaced with a perl script (projectDownloadMigrate.pl) that drops the HELM_PROJECTDOWNLOAD table, moves its rows into the HELM_PROJECTDOCUMENT table, and moves its attached files to their new home on the fileserver.
@
text
@d7 1
d29 1
a56 1
 
d58 7
@


1.6
log
@Issue number: 4242
Completely removing IZ's password and LDAP code.  This is in advance of
more signifigant changes to persuade IZ to obtain permission information
directly from Helm.

This is a large-scale cleanup of code which is useless to IZ, since it
obtains the information it uses for authentication from Helm in any event.
Password information was merely dummy strings that acted as placeholders
in the profiles table; as of now, it is sufficient to have an entry in
the profiles table (non-disabled, of course) for access.

Related changes can be found in issuezilla/
@
text
@d20 4
@


1.5
log
@this sql script was moved into the migration for 1.0.5, since this
item is now fixed in 1.0.5
@
text
@d20 33
@


1.4
log
@Make migrations work against a remote database.
@
text
@d3 1
a3 1
DIR=__SANDBOX__/helm/scripts/migration/1.0.0-1.1.0
d5 1
a5 1
echo Started migration from from 1.0.0 to 1.1.0
d20 1
a20 1
echo Completed migration from 1.0.0 to 1.1.0
@


1.3
log
@A Heartbreaking Patch of Staggering Genius: adds capacity (but no interface) for deeply nested projects, categories, and project groups. As a side effect, gets rid of the hacky special 'all public projects in domain' group. There are probably bugs in this, and some of those bugs are probably security holes, so watch out.
@
text
@d10 4
a13 2
 echo "Running $i"
 mysql -u__DATABASE_USER__ -p__DATABASE_PASSWORD__ __DATABASE_NAME__ < $DIR/$i
@


1.2
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@d15 3
@


1.1
log
@New migration scripts for post-1.0. We will leave no typo unfixed!
@
text
@d3 1
a3 1
DIR=__SANDBOX__/helm/scripts/migration/1.0.0-1.0.1
d5 1
a5 1
echo Started migration from from 1.0.0 to 1.0.1.
d15 1
a15 1
echo Completed migration from 1.0.0 to 1.0.1.
@

