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


1.2
date	2001.05.02.06.37.00;	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
@Replaced Role-specific tables w/ more general purpose versions.
@
text
@DROP TABLE IF EXISTS xxxx_populate_RoleAttributeValue;
CREATE TABLE xxxx_populate_RoleAttributeValue
(
  ROLE       varchar(255) NOT NULL,
  ATTRIBUTE  varchar(255) NOT NULL,
  VALUE      varchar(255) NOT NULL
);

INSERT INTO xxxx_populate_RoleAttributeValue 
     (ROLE, ATTRIBUTE, VALUE) 
VALUES
  ("Observer", "requestable", "Y")
 ,("Developer", "requestable", "Y")
 ,("Content Developer", "requestable", "Y")
 ,("Project Owner", "requestable", "Y")

 ,("Project Owner", "denotesOwnership", "Y")
 ,("Domain Admin", "denotesOwnership", "Y")
 ,("Host Admin", "denotesOwnership", "Y")

 ,("Project Owner", "grantOnProjectCreation", "Y")
;

INSERT INTO HELM_ROLE_ATTRIBUTE_VALUE
 SELECT HELM_ROLE.ROLE_ID, HELM_ROLE_ATTRIBUTE.ATTRIBUTE_ID, VALUE
  FROM xxxx_populate_RoleAttributeValue, HELM_ROLE, HELM_ROLE_ATTRIBUTE
   where HELM_ROLE.NAME = xxxx_populate_RoleAttributeValue.ROLE
     and HELM_ROLE_ATTRIBUTE.NAME = xxxx_populate_RoleAttributeValue.ATTRIBUTE
;
 
DROP TABLE xxxx_populate_RoleAttributeValue;@


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

