head	1.8;
access;
symbols
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.7
	TIGRIS_0_9_2_3:1.7
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.7
	TIGRIS_0_9_2_1:1.7
	TIGRIS_0_9_2:1.7.0.4
	TIGRIS_0_9_0:1.7.0.2
	TIGRIS_0_8_4:1.5.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2001.03.12.20.10.28;	author leonardr;	state dead;
branches;
next	1.7;

1.7
date	2000.12.12.19.48.16;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.08.08.36.26;	author dlr;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.15.02.20.27;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.15.02.17.13;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.14.23.04.25;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.14.22.57.47;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.17.50;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.17.50;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.28;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Begone, no-longer-neccessary table creation scripts!
@
text
@# HELM_PROJECTDOWNLOAD stores meta-info about files uploaded to a project.
# + name is the name of the file to be displayed to the user.
# + location is a path under the project-specific
#   area under the HTDOC root.  It may alternatively be a URL to
#   a resource stored off-site.
# + suggestedBy is a userID from the User table of the user that uploaded the file.
# + approvedBy shows the userID of the User that approved the visibility of
#   the download, downloads with approvedBy=NULL will not be displayed to
#   average users. 
# Expecting 100s or 1000s of entries.

drop table if exists HELM_PROJECTDOWNLOAD;
create table HELM_PROJECTDOWNLOAD (
  DOWNLOAD_ID    integer AUTO_INCREMENT PRIMARY KEY,
  PROJECT_ID     integer NOT NULL,
  FILE_NAME      varchar(128) NOT NULL,
  LOCATION       text NOT NULL,
  UPLOADED_BY    integer NOT NULL,
  APPROVED_BY    integer DEFAULT NULL,
  IS_PUBLIC      enum ('N', 'Y') NOT NULL,
  DESCRIPTION    varchar(255) NOT NULL,
  UPLOAD_DATE    datetime NOT NULL,
  SIZE           int,
  MD5            varchar(255)
);
create index PROJECT_ID on HELM_PROJECTDOWNLOAD (PROJECT_ID);
@


1.7
log
@Changed IS_PRIVATE to IS_PUBLIC--propogating all the way through to
the UI.
@
text
@@


1.6
log
@Added MD5 checksum field.
@
text
@d20 1
a20 1
  IS_PRIVATE     enum ('Y', 'N') NOT NULL,
@


1.5
log
@MySQL docs say that unsigned is okay (and has a range of 0 to
4294967295), but the MySQL RPM distributed in the Tigris tarball--
mysql  Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686)--disagrees.
@
text
@d23 2
a24 1
  SIZE           int
@


1.4
log
@MySQL integers have a range of -2147483648 to 2147483647.  An unsigned
int should provide an even better range for determining file size.
Floating point is unnecessary, as we should store the size in bytes.
@
text
@d23 1
a23 1
  SIZE           unsigned int
@


1.3
log
@Renamed NAME to FILE_NAME.
@
text
@d23 1
a23 1
  SIZE           double
@


1.2
log
@I'm using the LOCATION field as the directory path (not including file
name).  NAME is the actual file name itself.
@
text
@d16 2
a17 2
  NAME		 varchar(128) NOT NULL,
  LOCATION	 text NOT NULL,
@


1.1
log
@Initial revision
@
text
@d17 1
a17 1
  LOCATION	 varchar(255) NOT NULL,
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d16 2
a17 2
  FILE_NAME      varchar(128) NOT NULL,
  LOCATION       text NOT NULL,
d20 1
a20 1
  IS_PUBLIC      enum ('N', 'Y') NOT NULL,
d23 1
a23 2
  SIZE           int,
  MD5            varchar(255)
@

