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


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

1.5
date	2001.03.26.02.46.32;	author jrobbins;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.26.02.19.26;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.25.22.14.43;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.25.21.48.41;	author jrobbins;	state Exp;
branches;
next	1.1;

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


desc
@@


1.6
log
@Fixed document table definitions.
@
text
@#old name from 090
drop table if exists HELM_PROJECTDOCUMENTSECTION;

#new name for 092
create table HELM_PROJECT_DOCUMENT_SECTION (
    document_ID		integer NOT NULL,
    section_ID 	integer NOT NULL,
    PRIMARY KEY (document_ID, section_ID)
);

#new tables for 092
drop table if exists HELM_PROJECTSECTION;
create table HELM_PROJECTSECTION (
  SECTION_ID   integer AUTO_INCREMENT PRIMARY KEY,
  PARENT_ID integer DEFAULT NULL,
  PROJECT_ID    integer NOT NULL,
  NAME	        varchar(128) NOT NULL,
  DESCRIPTION   varchar(255) DEFAULT '',
  SUGGESTED_BY  integer NOT NULL,
  APPROVED_BY   integer DEFAULT NULL
);
create index PROJECT_ID on HELM_PROJECTSECTION (PROJECT_ID);


drop table if exists HELM_USER_PROJECT_INTEREST;
create table HELM_USER_PROJECT_INTEREST (
    USER_ID int NOT NULL,
    PROJECT_ID int NOT NULL,
    PRIMARY KEY (USER_ID, PROJECT_ID)
);
@


1.5
log
@this is actually a renaming operataion
@
text
@d6 18
a23 9
    SECTION_ID   integer AUTO_INCREMENT PRIMARY KEY,
    PARENT_ID integer DEFAULT NULL,
    PROJECT_ID    integer NOT NULL,
    NAME	        varchar(128) NOT NULL,
    DESCRIPTION   varchar(255) DEFAULT '',
    SUGGESTED_BY  integer NOT NULL,
    APPROVED_BY   integer DEFAULT NULL
    );
create index PROJECT_ID on HELM_PROJECT_DOCUMENT_SECTION (PROJECT_ID);
@


1.4
log
@woops, that table did not change names until 1.0.0
@
text
@d1 1
d3 3
a5 1
create table HELM_PROJECTDOCUMENTSECTION (
d14 1
a14 1
create index PROJECT_ID on HELM_PROJECTDOCUMENTSECTION (PROJECT_ID);
@


1.3
log
@corrected table names
@
text
@d1 2
a2 2
drop table if exists HELM_PROJECT_DOCUMENT_SECTION;
create table HELM_PROJECT_DOCUMENT_SECTION (
d11 1
a11 1
create index PROJECT_ID on HELM_PROJECT_DOCUMENT_SECTION (PROJECT_ID);
@


1.2
log
@table and column name fixes
@
text
@d2 1
a2 1
create table HELM_PROJECT_SECTION (
d11 1
a11 1
create index PROJECT_ID on HELM_PROJECT_SECTION (PROJECT_ID);
@


1.1
log
@First stab at 0.9.0->0.9.2 migration scripts.
@
text
@d1 2
a2 2
drop table if exists HELM_PROJECTDOCUMENTSECTION;
create table HELM_PROJECTSECTION (
d11 2
a12 1
create index PROJECT_ID on HELM_PROJECTSECTION (PROJECT_ID);
@

