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


1.4
date	2001.05.02.22.00.55;	author kmaples;	state Exp;
branches;
next	1.3;

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

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

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

1.1.2.1
date	2001.04.05.22.47.49;	author kmaples;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Fixed components table to enable voting by default.
@
text
@#
# Changes issue statuses from 'ASSIGNED' to 'STARTED':
# 

ALTER TABLE issues 
    MODIFY issue_status 
    enum(   "UNCONFIRMED", "NEW", "STARTED", "ASSIGNED",
    "REOPENED", "RESOLVED", "VERIFIED", "CLOSED") 
    NOT NULL;

UPDATE issues 
    SET issue_status='STARTED' 
    WHERE issue_status='ASSIGNED';
    
ALTER TABLE issues 
    MODIFY issue_status 
    enum(   "UNCONFIRMED", "NEW", "STARTED", 
    "REOPENED", "RESOLVED", "VERIFIED", "CLOSED") 
    NOT NULL;

# Hack, and probably unnecessary - in case the changed 
# column accidently caused some rows to be zeroed out:
UPDATE issues
    SET issue_status='STARTED'
    WHERE issue_status='';
   
# Update the values in the activity tables:
 
UPDATE issues_activity
    SET oldvalue='STARTED'
    WHERE oldvalue='ASSIGNED'; 

UPDATE issues_activity
    SET newvalue='STARTED'
    WHERE newvalue='ASSIGNED';  

# Change the default votes per user - this effectively
# enables voting by default:

ALTER TABLE components ALTER votesperuser SET DEFAULT 10;
@


1.3
log
@Added fix for what was probably a transitory bug causing status field to
be zeroed after an enum change.
@
text
@d37 4
@


1.2
log
@Probably harmless, but the issues_activity table wasn't getting its values
updated from ASSIGNED to STARTED.
@
text
@d20 7
a26 1
    
d28 1
a28 1
  
d31 1
a31 1
    WHERE oldvalue='ASSIGNED';  
a35 1

@


1.1
log
@Added the relevant scripts for the issuezilla portion of upgrade.  These
scripts superceede those previously locted in issuezilla/patches/
@
text
@d21 11
@


1.1.2.1
log
@Adding changes to upgrade scripts from HEAD
@
text
@d20 1
a20 17

# Hack, and probably unnecessary - in case the changed 
# column accidently caused some rows to be zeroed out:
UPDATE issues
    SET issue_status='STARTED'
    WHERE issue_status='';
   
# Update the values in the activity tables:
 
UPDATE issues_activity
    SET oldvalue='STARTED'
    WHERE oldvalue='ASSIGNED'; 

UPDATE issues_activity
    SET newvalue='STARTED'
    WHERE newvalue='ASSIGNED';  

@


