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


1.2
date	2001.03.17.23.23.48;	author edk;	state dead;
branches;
next	1.1;

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


desc
@@


1.2
log
@remove generated file added to cvs by accident
@
text
@

####################################################
##
## Create a temp table to hold the non-keyed values
##
##

drop table if exists xxxx_populate_Project;
create table xxxx_populate_Project (
  DOMAIN_NAME       varchar(255) NOT NULL,
  NAME              varchar(64) DEFAULT '' NOT NULL,  
  LICENSE           varchar(64),
  SHORT_DESCRIPTION varchar(128),
  LONG_DESCRIPTION  text,
  STATUS            text,
  PROFILE           enum('development', 'discussion', 'category', 'clone', 'special'),
  TYPE              enum('base', 'group', 'category', 'domain', 'host'),
  ALIAS_URL         varchar(128),
  MEMBER_POLICY     integer,
  PROPOSED_BY       varchar(32) NOT NULL,
  APPROVED_BY       varchar(32) NOT NULL
);

insert into xxxx_populate_Project
          ( DOMAIN_NAME, 
            NAME, 
            LICENSE, 
            SHORT_DESCRIPTION,
            LONG_DESCRIPTION,
            STATUS, 
	    PROFILE,
            TYPE,
            ALIAS_URL,
            MEMBER_POLICY, 
            PROPOSED_BY, 
            APPROVED_BY
          )
##########################################################################
# Special projects.
  values ( "**HOST",            #Domain
           "**All projects on host",  #Name
           "None",         #License
           "All projects on host", #short desc
           "The group holding all projects on this host", #longdesc
           "",             #Status
	   "special",      #Profile
           "host",         #Type         
           "",             #Alias URL
           1,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
       , ( "sc-dev2.sp.collab.net",   #Domain
           "*All projects in domain",  #Name
           "None",         #License
           "All projects in sc-dev2.sp.collab.net", #short desc
           "The group holding all projects in sc-dev2.sp.collab.net", #longdesc
           "",             #Status
	   "special",      #Profile
           "domain",       #Type         
           "",             #Alias URL
           2,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
       , ( "sc-dev2.sp.collab.net",   #Domain
           "*All public projects in domain",   #Name
           "None",         #License
           "All the public projects in sc-dev2.sp.collab.net", #short desc
           "The group holding all projects in sc-dev2.sp.collab.net", #longdesc
           "",             #Status
	   "special",      #Profile
           "domain",       #Type         
           "",             #Alias URL
           2,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
       , ( "sc-dev2.sp.collab.net",   #project for docs and the "default" project (??)
           "look",     #Name
           "GPL",          #License
           "A project for HTML documents and information", #short desc
           "This project branding information used to affect the appearance of the site", #longdesc
           "Initial content.", #Status
	   "development",  #Profile
           "base",         #Type         
           "",             #Alias URL
           2,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
;

insert into xxxx_populate_Project
          ( DOMAIN_NAME, 
            NAME, 
            LICENSE, 
            SHORT_DESCRIPTION,
            LONG_DESCRIPTION,
            STATUS, 
	    PROFILE,
            TYPE,
            ALIAS_URL,
            MEMBER_POLICY, 
            PROPOSED_BY, 
            APPROVED_BY
          )
          select "sc-dev2.sp.collab.net", 
            project, 
            "BSD", 
            long_name,
            "",
            "", 
	    "development",
            "base",
            "",
            2, 
            "root", 
            "root"
          from domain_projects;
drop table domain_projects;

##
## now insert the values into the correct table replacing
## names with ids from the corresponding tables
##
insert into HELM_PROJECT 
          ( DOMAIN_ID,
            NAME,
            LICENSE,
            SHORT_DESCRIPTION,
            LONG_DESCRIPTION,
            STATUS,
	    PROFILE,
	    TYPE,
            ALIAS_URL,
            MEMBER_POLICY,
            PROPOSED_BY,
            APPROVED_BY
           )
   select Domain.DOMAIN_ID,
          Tmp.NAME, 
          Tmp.LICENSE, 
          Tmp.SHORT_DESCRIPTION,
          Tmp.LONG_DESCRIPTION, 
          Tmp.STATUS, 
          Tmp.PROFILE, 
          Tmp.TYPE, 
          Tmp.ALIAS_URL,
	  Tmp.MEMBER_POLICY, 
          Proposed.USER_ID, 
          Appoved.USER_ID
     from xxxx_populate_Project as Tmp,
          HELM_DOMAIN as Domain,
          HELM_USER as Proposed,
          HELM_USER as Appoved
     where Tmp.DOMAIN_NAME = Domain.NAME 
       and Tmp.PROPOSED_BY = Proposed.LOGIN_NAME
       and Tmp.APPROVED_BY = Appoved.LOGIN_NAME
;

drop table xxxx_populate_Project;

@


1.1
log
@Added scripts to convert from Tigris Classic (tm) to Tigris 1.0.0 (tm). Lovely. A few TODOs: 1) Convert project_mlists into Anzu options. 2) Figure out what to do with the domain_config table. 3) Put in the Eyebrowse tables. 4) Plug in the Bugzilla -> Issuezilla conversion script (yet to be written). That's all for today, I'm going home.
@
text
@@

