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


1.3
date	2001.03.16.20.37.02;	author leonardr;	state dead;
branches;
next	1.2;

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

1.1
date	2001.03.16.07.45.13;	author davidp;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Changed names of scripts.
@
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 Request;
drop table RolePermission;
drop table UserRole;
drop table DeletedUser;
drop table HELM_SKIN;
drop table HELM_SKIN_STYLE_ELEMENT_VALUE;
drop table HELM_STYLEELEMENT;
drop table HELM_STYLE;@


1.2
log
@Fixed much invalid SQL and wrote a simple migration script.
@
text
@@


1.1
log
@First pass, untested.  Commiting now to allow others to edit.
@
text
@d6 7
a12 7
    change column NEWS_ID int(11) NOT NULL auto_increment,
    change column EVENT_DATE datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
    change column BODY text DEFAULT '' NOT NULL,
    change column PROPOSED_BY int(11),
    change column APPROVED_BY int(11),
    change column PUBLISH_ON datetime,
    change column REMOVE_ON datetime;
d16 1
a22 1
    drop primary key,
d28 3
a53 1
    drop primary key,
a54 1
    drop index loginID,
d56 1
a56 2
    drop index type,
    add unique TYPE (TYPE);
@

