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


1.6
date	2001.07.30.18.44.24;	author leonardr;	state dead;
branches;
next	1.5;

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

1.4
date	2001.06.15.17.11.19;	author leonardr;	state Exp;
branches;
next	1.3;

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

1.2
date	2001.05.09.02.15.53;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.02.20.58.30;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Moved stuff from 1.1.0 migration directory to 1.2.0 directory to reflect actual future versioning.
@
text
@drop table if exists HELM_ATTRIBUTE;

CREATE TABLE HELM_ATTRIBUTE
(
    ATTRIBUTE_ID INTEGER NOT NULL AUTO_INCREMENT,
    TYPE_ID INTEGER NOT NULL,
    ENTITY_TYPE VARCHAR (64) NOT NULL,
    NAME VARCHAR (128) NOT NULL,
    DEFAULT_VALUE LONGTEXT default '' NOT NULL,
    DESCRIPTION LONGTEXT default '',
    PRIMARY KEY(ATTRIBUTE_ID),
    FOREIGN KEY (TYPE_ID) REFERENCES HELM_ATTRIBUTE_TYPE (ATTRIBUTE_TYPE_ID),
    UNIQUE (ENTITY_TYPE, NAME)
  
);

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'requestable', 
        'Allow users to request this role?',
        'Y'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';
	
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'denotesOwnership',
        'Should someone with this role be considered an "owner"?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'grantOnProjectCreation', 
        'Grant this role to someone who creates a new project?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME="boolean";

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'blockRecursionIntoPrivateProjects',
        'Prevent users with this role in a project from having the same role in its private subprojects?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'maxUploadSize',
        'Maxiumum File Upload Size (MB)',
        '25'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='integer';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'fractionalUserCacheSize',
        'Size of User Cache (As fraction of number of users)',
        '.3'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='float';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'fractionalProjectCacheSize',
        'Size of Project Cache (As fraction of number of projects)',
        '.3'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='float';
@


1.5
log
@Rearranged attribute constants and added generic host attribute-editing interface to AdminUtils.
@
text
@@


1.4
log
@Added code to handle the default fractional size of TableTrackingBufferCaches as host attributes.
@
text
@d58 2
a59 2
        'Maxiumum File Upload Size',
        '26214400'
d67 1
a67 1
        'Fraction of users to cache',
d76 1
a76 1
        'Fraction of projects to cache',
@


1.3
log
@Corrected typo.
@
text
@d48 2
a49 2
        'recurseIntoPrivateProjects',
        "Should someone with this role in a project have the role as a derived role in the project's private subprojects?",
d61 18
@


1.2
log
@Added to migration script.
@
text
@d44 2
d49 1
a49 1
        'Should someone with this role in a project have the role as a derived role in the project's private subprojects?',
@


1.1
log
@Upgrade script for generic attribute tables.  Currently populates with
Role-specific data.
@
text
@d43 16
@

