head	1.3;
access;
symbols
	TIGRIS_1_1_0RC2:1.1.6.1
	TIGRIS_1_1_0RC1:1.1.6.1
	TIGRIS_1_1:1.1.6.1.0.2
	TIGRIS_1_0_8:1.1.6.1
	TIGRIS_1_0_8RC3:1.1.6.1
	TIGRIS_1_0_8RC2:1.1.6.1
	TIGRIS_1_0_8RC1:1.1.6.1
	TIGRIS_1_0_7:1.1.6.1
	TIGRIS_1_0_7RC3:1.1.6.1
	TIGRIS_1_0_7RC2:1.1.6.1
	TIGRIS_1_0_7RC1:1.1.6.1
	TIGRIS_1_0_6:1.1.6.1
	TIGRIS_1_0_6RC5:1.1.6.1
	TIGRIS_1_0_6RC4:1.1.6.1
	TIGRIS_1_0_6RC3:1.1.6.1
	TIGRIS_1_0_6RC2:1.1.6.1
	TIGRIS_1_0_6RC1:1.1.6.1
	TIGRIS_1_0_5:1.1.6.1
	TIGRIS_1_0_5RC6:1.1.6.1
	TIGRIS_1_0_5RC5:1.1.6.1
	TIGRIS_1_0_5RC4:1.1.6.1
	TIGRIS_1_0_5RC3:1.1.6.1
	TIGRIS_1_0_5RC2:1.1.6.1
	TIGRIS_1_0_5RC1:1.1.6.1
	TIGRIS_1_0_4:1.1.6.1
	TIGRIS_1_0_3:1.1
	TIGRIS_1_0_2:1.1
	TIGRIS_1_0_1:1.1
	TIGRIS_1_0:1.1.0.6
	TIGRIS_1_0_0:1.1
	TIGRIS_1_0_0_RC1:1.1.0.2;
locks; strict;
comment	@# @;


1.3
date	2001.05.30.00.17.32;	author kmaples;	state dead;
branches;
next	1.2;

1.2
date	2001.05.01.21.22.38;	author kmaples;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.23.00.12.36;	author kmaples;	state Exp;
branches
	1.1.6.1;
next	;

1.1.6.1
date	2001.05.02.19.54.30;	author kmaples;	state Exp;
branches;
next	;


desc
@@


1.3
log
@No need for this to be a .in file anymore.
@
text
@# $Id: TIGRIS_0_8_4.issuezilla.sql.in,v 1.2 2001/05/01 21:22:38 kmaples Exp $

# SQL script to bring issuezilla databases from 
# TIGRIS_SEP_13_2000 to TIGRIS_0_8_4

# -------------------------------------------------------
# Change 'component' to 'subcomponent":
# -------------------------------------------------------
# 1.a: components table:

ALTER TABLE components 
    RENAME AS subcomponents;

# 1.b.: issues table:

ALTER TABLE issues 
    DROP KEY component;
ALTER TABLE issues 
    CHANGE component subcomponent 
    VARCHAR(50) DEFAULT '' NOT NULL;
ALTER TABLE issues
    ADD INDEX subcomponent (subcomponent);

# -------------------------------------------------------
# Change 'products' to component:
# -------------------------------------------------------
# 2.a products table:

ALTER TABLE products 
    RENAME AS components;
ALTER TABLE components
    CHANGE product component
    VARCHAR(64);

# 2.b: milestones table:

ALTER TABLE milestones
    DROP INDEX product;
ALTER TABLE milestones
    CHANGE product component
    VARCHAR(64) DEFAULT '' NOT NULL;
ALTER TABLE milestones 
    ADD UNIQUE component (component, value);

# 2.c: issues table:

ALTER TABLE issues
    DROP INDEX product;
ALTER TABLE issues
    CHANGE product component
    VARCHAR(64) DEFAULT '' NOT NULL;
ALTER TABLE issues
    ADD INDEX component (component);

# -------------------------------------------------------
# Disable IZ's authentication
# -------------------------------------------------------

UPDATE profiles 
SET     
    password = 'password', 
    cryptpassword = encrypt('password');





@


1.2
log
@Removed attempt to convert users to username@@{domain}; was causing failures.
Still need another method for achieving the same result, or ensuring that
users receive accts. in helm.
@
text
@d1 1
a1 1
# $Id: TIGRIS_0_8_4.issuezilla.sql.in,v 1.1 2001/03/23 00:12:36 kmaples Exp $
@


1.1
log
@Added the relevant scripts for the issuezilla portion of upgrade.  These
scripts superceede those previously locted in issuezilla/patches/
@
text
@d1 1
a1 1
# $Id: TIGRIS_0_8_4.issuezilla.sql.in,v 1.2 2001/03/16 22:30:24 kmaples Exp $
a64 10
# -------------------------------------------------------
# 'Normalize' usernames (email addresses) to those 
# managed by Helm 
# -------------------------------------------------------

UPDATE profiles 
SET 
    login_name = concat(
        substring_index( login_name , '@@', 1), 
        "@@__DOMAIN__");
@


1.1.6.1
log
@Modified migration scripts to change the bugs@@ user to issues@@; added a script
which attempts to reconcile existing helm accounts with older issuezilla
accounts upon upgrade from versions prior to 0.8.4; removed the sql statement
which attempted a brute-force transformation of user accounts in favor of
the aforementioned script; added data validation tools in helm/tests; added
the shared perl db library that these scripts use (HelmDB.pm) in previous
commit.
@
text
@d1 1
a1 1
# $Id: TIGRIS_0_8_4.issuezilla.sql.in,v 1.2 2001/05/01 21:22:38 kmaples Exp $
d65 10
@


