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


1.2
date	2001.05.02.20.55.52;	author dlr;	state dead;
branches;
next	1.1;

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


desc
@@


1.2
log
@Deprecated by more general attribute tables.
@
text
@drop table if exists HELM_ROLE_ATTRIBUTE;

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

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

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


1.1
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@@

