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
@update HELM_ROLE set DESCRIPTION =
 	"Can reconfigure all projects and users on the site"
  where NAME="Domain Admin" 
;

#Get rid of periods in role names, which are now illegal.
select replace(NAME, ".", "") from HELM_ROLE;

alter table HELM_ROLE add column PROJECT_ID integer not null;
create table xxxx_HELM_ROLE
(
    ROLE_ID INTEGER NOT NULL,
    PROJECT_ID INTEGER NOT NULL,
    NAME VARCHAR (99) NOT NULL,
    TYPE VARCHAR (7) default 'Project' NOT NULL,
    DESCRIPTION MEDIUMTEXT
)
;

insert into xxxx_HELM_ROLE (ROLE_ID, PROJECT_ID, NAME, TYPE, DESCRIPTION)
select ROLE_ID, HELM_PROJECT.PROJECT_ID, HELM_ROLE.NAME, HELM_ROLE.TYPE,
       DESCRIPTION
 from HELM_ROLE, HELM_PROJECT
 where (HELM_PROJECT.TYPE="host" and HELM_ROLE.NAME="Host Admin") or
       (HELM_PROJECT.TYPE="domain" and HELM_ROLE.NAME!="Host Admin")
;

delete from HELM_ROLE;
insert into HELM_ROLE select * from xxxx_HELM_ROLE;
drop table xxxx_HELM_ROLE;@
