head	1.3;
access;
symbols
	TIGRIS_1_1_0RC2:1.3
	TIGRIS_1_1_0RC1:1.3
	TIGRIS_1_1:1.3.0.4
	TIGRIS_1_0_8:1.3
	TIGRIS_1_0_8RC3:1.3
	TIGRIS_1_0_8RC2:1.3
	TIGRIS_1_0_8RC1:1.3
	TIGRIS_1_0_7:1.3
	TIGRIS_1_0_7RC3:1.3
	TIGRIS_1_0_7RC2:1.3
	TIGRIS_1_0_7RC1:1.3
	TIGRIS_1_0_6:1.3
	TIGRIS_1_0_6RC5:1.3
	TIGRIS_1_0_6RC4:1.3
	TIGRIS_1_0_6RC3:1.3
	TIGRIS_1_0_6RC2:1.3
	TIGRIS_1_0_6RC1:1.3
	TIGRIS_1_0_5:1.3
	TIGRIS_1_0_5RC6:1.3
	TIGRIS_1_0_5RC5:1.3
	TIGRIS_1_0_5RC4:1.3
	TIGRIS_1_0_5RC3:1.3
	TIGRIS_1_0_5RC2:1.3
	TIGRIS_1_0_5RC1:1.3
	TIGRIS_1_0_4:1.3
	TIGRIS_1_0_3:1.3
	TIGRIS_1_0_2:1.3
	TIGRIS_1_0_1:1.3
	TIGRIS_1_0:1.3.0.6
	TIGRIS_1_0_0:1.3
	TIGRIS_1_0_0_RC1:1.3.0.2;
locks; strict;
comment	@# @;


1.3
date	2001.03.25.22.00.11;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.25.21.48.41;	author jrobbins;	state Exp;
branches;
next	1.1;

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


desc
@@


1.3
log
@corrected column names
@
text
@#New permissions for roles

insert into HELM_ROLE_ACTION_RESOURCE (ROLE_ID, ACTION_ID, RESOURCE_ID)
       select  Role.roleID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  Role, HELM_ACTION, HELM_RESOURCE
         where Role.name = "Anonymous Guest"
           and HELM_RESOURCE.DESCRIPTION in ("All applicable resources")
           and HELM_ACTION.NAME in ( "Domain Page - View"
                                   , "Domain News - View"
                                   , "Domain - Join"
                                   , "DomainProjects - View"
                                   , "DomainProjectCategories - View"
                                   , "DomainSpotlight - View"
                                   , "Project Content - View"
                                   , "Project Download - View"
                                   , "Project Document - View"
		                   , "Project Issue Tracking - Query"
                                   , "Project Member - List"
                                   , "Project News - View"
                                   , "Project Page - View"
                                   , "SearchResults - View"
	                           , "Mailing List - List"
                                   , "Mailing List - View"
				   , "VersionControl - Update"
				   , "VersionControl - Diff"
				   , "VersionControl - Logs"
				   , "VersionControl - History"
				   )
;

insert into HELM_ROLE_ACTION_RESOURCE (ROLE_ID, ACTION_ID, RESOURCE_ID)
       select  Role.RoleID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  Role, HELM_ACTION, HELM_RESOURCE
         where Role.name = "Registered User"
           and HELM_RESOURCE.DESCRIPTION in ("All applicable resources")
           and HELM_ACTION.NAME in ( "Project Document - View", "Project Issue Tracking - Submit")
;

insert into HELM_ROLE_ACTION_RESOURCE (ROLE_ID, ACTION_ID, RESOURCE_ID)
       select  Role.roleID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  Role, HELM_ACTION, HELM_RESOURCE
         where Role.name = "Content Viewer"
           and HELM_RESOURCE.DESCRIPTION in ("All applicable resources")
           and HELM_ACTION.NAME in ( "Project Document - View")
;

insert into HELM_ROLE_ACTION_RESOURCE (ROLE_ID, ACTION_ID, RESOURCE_ID)
       select  Role.RoleID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  Role, HELM_ACTION, HELM_RESOURCE
         where (Role.name = "Developer" or Role.name = "Content Developer")
           and HELM_RESOURCE.DESCRIPTION in ("All applicable resources")
           and HELM_ACTION.NAME in ( "VersionControl - Status")
;

insert into HELM_ROLE_ACTION_RESOURCE (ROLE_ID, ACTION_ID, RESOURCE_ID)
       select  Role.roleID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  Role, HELM_ACTION, HELM_RESOURCE
         where Role.name = "Project Owner"
           and HELM_RESOURCE.DESCRIPTION in ("All applicable resources")
           and HELM_ACTION.NAME in ( "Project Document - Edit", "Project Document - Delete")
;@


1.2
log
@table and column name fixes
@
text
@d40 1
a40 1
       select  Role.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
d56 1
a56 1
       select  Role.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
@


1.1
log
@First stab at 0.9.0->0.9.2 migration scripts.
@
text
@d4 3
a6 3
       select  HELM_ROLE.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  HELM_ROLE, HELM_ACTION, HELM_RESOURCE
         where HELM_ROLE.NAME = "Anonymous Guest"
d32 3
a34 3
       select  HELM_ROLE.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  HELM_ROLE, HELM_ACTION, HELM_RESOURCE
         where HELM_ROLE.NAME = "Registered User"
d40 3
a42 3
       select  HELM_ROLE.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  HELM_ROLE, HELM_ACTION, HELM_RESOURCE
         where HELM_ROLE.NAME = "Content Viewer"
d48 3
a50 3
       select  HELM_ROLE.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  HELM_ROLE, HELM_ACTION, HELM_RESOURCE
         where (HELM_ROLE.NAME = "Developer" or HELM_ROLE.NAME = "Content Developer")
d56 3
a58 3
       select  HELM_ROLE.ROLE_ID, HELM_ACTION.ACTION_ID, HELM_RESOURCE.RESOURCE_ID
         from  HELM_ROLE, HELM_ACTION, HELM_RESOURCE
         where HELM_ROLE.NAME = "Project Owner"
@

