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


1.2
date	2001.07.30.18.44.24;	author leonardr;	state dead;
branches;
next	1.1;

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


desc
@@


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

CREATE TABLE xxxx_HELM_ROLE_ACTION_RESOURCE
(
    ROLE_ID INTEGER NOT NULL,
    ACTION_ID INTEGER NOT NULL,
    RESOURCE_ID INTEGER NOT NULL
);

insert into xxxx_HELM_ROLE_ACTION_RESOURCE
 select rar.*
 from 
  HELM_ROLE as r, HELM_ROLE_ACTION_RESOURCE as rar, HELM_ACTION as a 
 where 
  rar.ACTION_ID=a.ACTION_ID 
  and r.ROLE_ID=rar.ROLE_ID 
  and not (r.TYPE="Project" and a.TYPE="Domain");

delete from HELM_ROLE_ACTION_RESOURCE;

insert into HELM_ROLE_ACTION_RESOURCE
 select * from xxxx_HELM_ROLE_ACTION_RESOURCE
;

drop table xxxx_HELM_ROLE_ACTION_RESOURCE;@


1.1
log
@Project roles should not have domain actions; this was causing confusion and bloating the RAR table.
@
text
@@

