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


1.5
date	2001.07.30.18.44.24;	author leonardr;	state dead;
branches;
next	1.4;

1.4
date	2001.07.02.22.47.43;	author leonardr;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.02.18.56.43;	author leonardr;	state Exp;
branches;
next	1.2;

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

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


desc
@@


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


1.4
log
@The period character is now a separator between the names of projects and their roles, and as such can no longer be used as the name of a role.
@
text
@@


1.3
log
@Implemented project-scoped roles.
@
text
@d6 3
@


1.2
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
@d5 23
@


1.1
log
@New migration scripts for post-1.0. We will leave no typo unfixed!
@
text
@d4 1
a4 1
;@

