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


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

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

1.2
date	2001.03.16.15.46.36;	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.4
log
@Changed names of scripts.
@
text
@alter table HELM_ACTION
    alter column ACTION_ID set default '0',
    modify column TYPE varchar(7) DEFAULT 'Host',
    add column TAKES_RESOURCE char(1) DEFAULT 'N' NOT NULL,
    add column AFFECTED_BY_PROJECT_LOCK char(1) DEFAULT 'N' NOT NULL,
    add column AFFECTED_TYPE varchar(7) DEFAULT 'Host' NOT NULL;

alter table HELM_AUDIT_LOG_ENTRY
    alter column ENTRY_ID set default '0',
    modify column DESCRIPTION longtext,
    modify column RATIONALE longtext;

alter table HELM_DOMAIN
    modify column DOMAIN_ID int(11) DEFAULT '0' NOT NULL auto_increment;

alter table HELM_INVITATION
    modify column INVITATION_ID int(11) DEFAULT '0' NOT NULL auto_increment;

alter table HELM_MAILINGLIST
    change column MAILING_LIST_ID MAILINGLIST_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    add column IS_PRIVATE char(1) DEFAULT 'N' NOT NULL,
    modify column DESCRIPTION longtext;

alter table HELM_PROJECT
    modify column PROJECT_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column SHORT_DESCRIPTION varchar(64),
    modify column LONG_DESCRIPTION longtext,
    modify column USE_INDEX char(1) DEFAULT 'N' NOT NULL,
    modify column STATUS longtext,
    modify column PROFILE varchar(11) DEFAULT 'development' NOT NULL,
    modify column TYPE varchar(8) DEFAULT 'base' NOT NULL,
    modify column IS_PROPRIETARY char(1) DEFAULT 'N' NOT NULL,
    add column LOCKED char(1) DEFAULT 'Y' NOT NULL;

alter table HELM_PROJECTDOCUMENT
    modify column DOCUMENT_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column DESCRIPTION longtext,
    modify column IS_PUBLIC char(1) DEFAULT 'N' NOT NULL,
    add column MD5 varchar(255),
    add column SIZE bigint(20) DEFAULT '0' NOT NULL,
    add column UPLOADED_DATE date,
    change column SUGGESTED_BY PROPOSED_BY int(11) DEFAULT '0' NOT NULL;

alter table HELM_PROJECTDOWNLOAD
    modify column DOWNLOAD_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column LOCATION varchar(128) DEFAULT '' NOT NULL,
    change column UPLOADED_BY PROPOSED_BY int(11) DEFAULT '0' NOT NULL,
    modify column IS_PUBLIC char(1) DEFAULT 'N' NOT NULL,
    modify column DESCRIPTION longtext,
    change column UPLOAD_DATE UPLOADED_DATE date DEFAULT '0000-00-00' NOT NULL,
    modify column SIZE bigint(20) DEFAULT '0' NOT NULL;

alter table HELM_PROJECTSECTION
    modify column SECTION_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column SUGGESTED_BY PROPOSED_BY int(11) DEFAULT '0' NOT NULL;

alter table HELM_PROJECT_DOCUMENT_SECTION
    drop primary key,
    change column document_ID DOCUMENT_ID int(11) DEFAULT '0' NOT NULL,
    change column section_ID SECTION_ID int(11) DEFAULT '0' NOT NULL,
    add primary key (DOCUMENT_ID,SECTION_ID);

alter table HELM_RESOURCE
    modify column RESOURCE_ID int(11) DEFAULT '0' NOT NULL auto_increment;

alter table HELM_TASK
    modify column TASK_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column COMMAND longtext,
    modify column ARGUMENTS longtext;

alter table HELM_USER_USERGROUP
    change column userID USER_ID int(11) DEFAULT '0' NOT NULL,
    change column userGroupID USER_GROUP_ID int(11) DEFAULT '0' NOT NULL,
    drop primary key,
    add primary key (USER_ID, USER_GROUP_ID);

alter table HELM_VC_MAP
    modify column MAP_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column REPOSITORY_DIR longtext NOT NULL,
    modify column WORKING_DIR longtext,
    modify column FILE_LIST longtext;

alter table HELM_VC_VIEW
    modify column VIEW_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    modify column NAME longtext NOT NULL;

alter table eb_Author
    modify column authorId int(11) DEFAULT '0' NOT NULL auto_increment;

alter table eb_List
    modify column listId int(11) DEFAULT '0' NOT NULL auto_increment;

alter table eb_ListFile
    modify column fileId int(11) DEFAULT '0' NOT NULL auto_increment;

alter table eb_Message
    modify column msgId int(11) DEFAULT '0' NOT NULL auto_increment;

alter table eb_Subject
    modify column subjectId int(11) DEFAULT '0' NOT NULL auto_increment;

alter table eb_Thread
    modify column threadId int(11) DEFAULT '0' NOT NULL auto_increment;
@


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


1.2
log
@Skin tables are gone, no need to lug around information about what
they were like before.
@
text
@d3 1
a3 1
    change column TYPE varchar(7) DEFAULT 'Host',
d5 2
a6 3
    add column AFFECTED_BY_PROJECT_DISABLE char(1) DEFAULT 'N' NOT NULL,
    change column AFFECTED_TYPE varchar(7) DEFAULT 'Host' NOT NULL,
    change column DESCRIPTION longtext;
d10 2
a11 2
    change column DESCRIPTION longtext,
    change column RATIONALE longtext;
d14 1
a14 1
    change column DOMAIN_ID int(11) DEFAULT '0' NOT NULL auto_increment;
d17 1
a17 1
    change column INVITATION_ID int(11) DEFAULT '0' NOT NULL auto_increment;
d20 1
a20 1
    change column MAILINGLIST_ID int(11) DEFAULT '0' NOT NULL auto_increment,
d22 1
a22 1
    change column DESCRIPTION longtext;
d25 8
a32 8
    change column PROJECT_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column SHORT_DESCRIPTION varchar(64),
    change column LONG_DESCRIPTION longtext,
    change column USE_INDEX char(1) DEFAULT 'N' NOT NULL,
    change column STATUS longtext,
    change column PROFILE varchar(11) DEFAULT 'development' NOT NULL,
    change column TYPE varchar(8) DEFAULT 'base' NOT NULL,
    change column IS_PROPRIETARY char(1) DEFAULT 'N' NOT NULL,
d36 3
a38 3
    change column DOCUMENT_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column DESCRIPTION longtext,
    change column IS_PUBLIC char(1) DEFAULT 'N' NOT NULL,
d42 1
a42 1
    change column PROPOSED_BY int(11) DEFAULT '0' NOT NULL;
d45 7
a51 7
    change column DOWNLOAD_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column LOCATION varchar(128) DEFAULT '' NOT NULL,
    rename column UPLOADED_BY as PROPOSED_BY,
    change column IS_PUBLIC char(1) DEFAULT 'N' NOT NULL,
    change column DESCRIPTION longtext,
    change column UPLOADED_DATE date DEFAULT '0000-00-00' NOT NULL,
    change column SIZE bigint(20) DEFAULT '0' NOT NULL;
d54 2
a55 2
    change column SECTION_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    rename column SUGGESTED_BY as PROPOSED_BY;
a57 2
    rename column document_ID as DOCUMENT_ID,
    rename column section_ID as SECTION_ID,
d59 2
d64 1
a64 1
    change column RESOURCE_ID int(11) DEFAULT '0' NOT NULL auto_increment;
d67 3
a69 3
    change column TASK_ID int(11) DEFAULT '0' NOT NULL auto_increment;
    change column COMMAND longtext;
    change column ARGUMENTS longtext;
d72 2
a73 2
    rename column userID as USER_ID,
    rename column userGroupID as USER_GROUP_ID,
d78 4
a81 4
    change column MAP_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column REPOSITORY_DIR longtext NOT NULL,
    change column WORKING_DIR longtext,
    change column FILE_LIST longtext;
d84 2
a85 2
    change column VIEW_ID int(11) DEFAULT '0' NOT NULL auto_increment,
    change column NAME longtext NOT NULL;
d88 1
a88 1
    change column authorId int(11) DEFAULT '0' NOT NULL auto_increment;
d91 1
a91 1
    change column listId int(11) DEFAULT '0' NOT NULL auto_increment;
d94 1
a94 1
    change column fileId int(11) DEFAULT '0' NOT NULL auto_increment;
d97 1
a97 1
    change column msgId int(11) DEFAULT '0' NOT NULL auto_increment;
d100 1
a100 1
    change column subjectId int(11) DEFAULT '0' NOT NULL auto_increment;
d103 1
a103 1
    change column threadId int(11) DEFAULT '0' NOT NULL auto_increment;
@


1.1
log
@First pass, untested.  Commiting now to allow others to edit.
@
text
@a66 25
#alter table HELM_SKIN
#    change column SKIN_ID int(11) DEFAULT '0' NOT NULL auto_increment;
#alter table HELM_SKIN
#    change column NAME varchar(127) DEFAULT '' NOT NULL;
#alter table HELM_SKIN
#    change column RESOURCE varchar(255) DEFAULT '' NOT NULL;
#alter table HELM_SKIN_STYLE_ELEMENT_VALUE
#    change column VALUE varchar(128) DEFAULT '' NOT NULL;
#alter table HELM_STYLE
#    change column STYLE_ID int(11) DEFAULT '0' NOT NULL auto_increment;
#alter table HELM_STYLE
#    change column NAME varchar(127) DEFAULT '' NOT NULL;
#alter table HELM_STYLE
#    change column DESCRIPTION varchar(255) DEFAULT '' NOT NULL;
#alter table HELM_STYLEELEMENT
#    change column ELEMENT_ID int(11) DEFAULT '0' NOT NULL auto_increment;
#alter table HELM_STYLEELEMENT
#    change column HTML_NAME varchar(255);
#alter table HELM_STYLEELEMENT
#    change column CSS_NAME varchar(255);
#alter table HELM_STYLEELEMENT
#    add column ASSOCIATED_HTML_TAG varchar(20);
#alter table HELM_STYLEELEMENT
#    change column DESCRIPTION varchar(255);

@

