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


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


desc
@@


1.1
log
@Moved stuff from 1.1.0 migration directory to 1.2.0 directory to reflect actual future versioning.
@
text
@# Add and drop columns from HELM_PROJECTDOCUMENT

alter table HELM_PROJECTDOCUMENT
 change column UPLOADED_DATE CREATED_DATE DATE
;

alter table HELM_PROJECTDOCUMENT
 drop column TYPE
;

alter table HELM_PROJECTDOCUMENT
 add STATUS mediumtext NULL
;

alter table HELM_PROJECTDOCUMENT
 add MODIFIED_DATE DATE
;

alter table HELM_PROJECTDOCUMENT
 add MODIFIED_BY int(11) NULL
;



#Provide default column values columns for old data

update HELM_PROJECTDOCUMENT set MODIFIED_DATE=CREATED_DATE where MODIFIED_DATE IS null;

update HELM_PROJECTDOCUMENT set MODIFIED_BY=PROPOSED_BY where MODIFIED_BY IS null;

update HELM_PROJECTDOCUMENT set STATUS="Active" where STATUS IS null;
@
