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


1.6
date	2001.03.26.03.27.38;	author jrobbins;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.26.02.24.07;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.26.02.08.33;	author leonardr;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


1.6
log
@also dropped Permission
made all drops conditional, why not?
@
text
@# Table renames
# =============

alter table HELM_PROJECTNEWS
    rename as HELM_NEWSITEM,
    modify column NEWS_ID int(11) NOT NULL auto_increment,
    modify column EVENT_DATE datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
    modify column BODY text DEFAULT '' NOT NULL,
    modify column PROPOSED_BY int(11),
    modify column APPROVED_BY int(11),
    modify column PUBLISH_ON datetime,
    modify column REMOVE_ON datetime;

alter table Role
    rename as HELM_ROLE,
    drop primary key,
    change column roleID ROLE_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column name NAME varchar(99) DEFAULT '' NOT NULL,
    change column type TYPE varchar(7) DEFAULT 'Project' NOT NULL,
    change column description DESCRIPTION longtext,
    add column DENOTES_OWNER char(1) DEFAULT 'N' NOT NULL,
    change column requestable REQUESTABLE char(1) DEFAULT 'N' NOT NULL,
    add primary key (ROLE_ID),
    add unique (NAME);

alter table User
    rename as HELM_USER,
    drop primary key,
    drop index loginID,
    drop index type,
    change column userID USER_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column domainID DOMAIN_ID int(11) DEFAULT '0' NOT NULL,
    change column loginID LOGIN_NAME varchar(32) DEFAULT '' NOT NULL,
    change column password PASSWORD varchar(32),
    change column name REAL_NAME varchar(99) DEFAULT '' NOT NULL,
    change column address1 ADDRESS1 varchar(32),
    change column address2 ADDRESS2 varchar(32),
    change column city CITY varchar(32),
    change column state STATE varchar(32),
    change column postalCode POSTALCODE varchar(32),
    change column country COUNTRY varchar(32),
    change column citizenship CITIZENSHIP varchar(32),
    change column phone PHONE varchar(32),
    change column altPhone ALTPHONE varchar(32),
    change column fax FAX varchar(32),
    change column cell CELL varchar(32),
    change column pager PAGER varchar(32),
    change column email EMAIL varchar(99),
    change column organization ORGANIZATION varchar(99) DEFAULT '',
    change column modified MODIFIED timestamp(14),
    change column created CREATED timestamp(14),
    change column type TYPE varchar(6) DEFAULT 'base' NOT NULL,
    change column passwordTicket PASSWORD_TICKET varchar(255),
    add primary key (USER_ID),
    add unique LOGIN_NAME (LOGIN_NAME,DOMAIN_ID),
    add index TYPE (TYPE);


# Deleted Tables
# ==============
drop table if exists Request;
drop table if exists Permission;
drop table if exists RolePermission;
drop table if exists UserRole;
drop table if exists DeletedUser;
drop table if exists HELM_SKIN;
drop table if exists HELM_SKIN_STYLE_ELEMENT_VALUE;
drop table if exists HELM_STYLEELEMENT;
drop table if exists HELM_STYLE;@


1.5
log
@Corrected SQL.
@
text
@d61 5
a65 4
drop table Request;
drop table RolePermission;
drop table UserRole;
drop table DeletedUser;
@


1.4
log
@Don't drop useless tables if they aren't there.
@
text
@d65 4
a68 4
drop table HELM_SKIN if exists HELM_SKIN;
drop table HELM_SKIN_STYLE_ELEMENT_VALUE if exists HELM_SKIN_STYLE_ELEMENT_VALUE;
drop table HELM_STYLEELEMENT if exists HELM_STYLEELEMENT;
drop table HELM_STYLE if exists HELM_STYLE;@


1.3
log
@Moved Torque-generated indexes.
@
text
@d65 4
a68 4
drop table HELM_SKIN;
drop table HELM_SKIN_STYLE_ELEMENT_VALUE;
drop table HELM_STYLEELEMENT;
drop table HELM_STYLE;@


1.2
log
@Add indexes.
@
text
@a58 23
alter table HELM_PROJECT_DOCUMENT_SECTION
	add INDEX(SECTION_ID);

alter table HELM_PROJECT_PROJECTGROUP
	add INDEX(PROJECT_GROUP_ID);

alter table HELM_ROLE_ACTION_RESOURCE
	add INDEX(ACTION_ID,RESOURCE_ID),
	add INDEX(RESOURCE_ID);

alter table HELM_USER_USERGROUP
	add INDEX(USER_GROUP_ID);

alter table HELM_PROJECT_INTEREST
	add INDEX(PROJECT);

alter table HELM_USER_ROLE_PROJECT
	add INDEX(ROLE_ID,PROJECT_ID),
	add INDEX(PROJECT_ID);




@


1.1
log
@Changed names of scripts.
@
text
@d58 24
@

