head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.7.2.1
	TIGRIS_1_1:1.7.0.2;
locks; strict;
comment	@# @;


1.8
date	2001.08.07.20.34.40;	author edk;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.30.18.44.24;	author leonardr;	state dead;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.06.19.00.24.02;	author leonardr;	state Exp;
branches;
next	1.5;

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

1.4
date	2001.06.11.23.09.01;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.06.23.44.35;	author elicia;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.17.17.47.22;	author edk;	state dead;
branches;
next	1.1;

1.1
date	2001.05.15.22.12.24;	author elicia;	state Exp;
branches;
next	;

1.7.2.1
date	2001.08.07.20.33.54;	author edk;	state Exp;
branches;
next	;


desc
@@


1.8
log
@add files used to fix up project documents wrt private / is_public:
* all current project documents should be made public (since private
  project documents weren't supported in 1.0.x), and this should be the
  default going forward
* some roles may have been given the Private Project Document - View
  permission as a workaround; if so, remove it so that they can be
  supported in the future.
@
text
@alter table HELM_PROJECTDOCUMENT ALTER IS_PUBLIC SET DEFAULT 'Y';

update HELM_PROJECTDOCUMENT set IS_PUBLIC = 'Y';

@


1.7
log
@Moved stuff from 1.1.0 migration directory to 1.2.0 directory to reflect actual future versioning.
@
text
@d1 1
a1 1
# Add and drop columns from HELM_PROJECTDOCUMENT
d3 1
a3 3
alter table HELM_PROJECTDOCUMENT
 change column UPLOADED_DATE CREATED_DATE DATE
;
a4 25
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;
@


1.7.2.1
log
@add files used to fix up project documents wrt private / is_public:
* all current project documents should be made public (since private
  project documents weren't supported in 1.0.x), and this should be the
  default going forward
* some roles may have been given the Private Project Document - View
  permission as a workaround; if so, remove it so that they can be
  supported in the future.
@
text
@d1 1
a1 1
alter table HELM_PROJECTDOCUMENT ALTER IS_PUBLIC SET DEFAULT 'Y';
d3 3
a5 1
update HELM_PROJECTDOCUMENT set IS_PUBLIC = 'Y';
d7 25
@


1.6
log
@Got rid of incorrectly dropped table.
@
text
@@


1.5
log
@Rearranged scripts to get rid of errors.
@
text
@a11 4
 drop column LOCATION
;

alter table HELM_PROJECTDOCUMENT
@


1.4
log
@Added lines to upgrade existing Documents data , setting default values for new fields.
@
text
@d4 1
a4 1
 change column CREATED_DATE MODIFIED_DATE DATE
d16 1
a16 1
 add STATUS mediumtext NULL;
@


1.3
log
@ the former ProjectDownload.sql script is now called ProjectDocument. It has the field changes for the HELM_PROJECTDOCUMENT table.

Added ProjectDownload.sql to migrate existing Download records to the ProjectDocument table.
@
text
@d1 1
d26 10
@


1.2
log
@this sql script was moved into the migration for 1.0.5, since this
item is now fixed in 1.0.5
@
text
@d1 1
d3 21
a23 1
    change column TEXT TEXT LONGTEXT
@


1.1
log
@changes HELM_PROJECTDOCUMENT.TEXT to longtext. Run this script by hand to fix the branch.
@
text
@@

