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
@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';
@
