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


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

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


desc
@@


1.2
log
@Hard-coded domain name begone!
@
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
       , ( "__DOMAIN__",   #Domain
           "*All projects in domain",  #Name
           "None",         #License
           "All projects in __DOMAIN__", #short desc
           "The group holding all projects in __DOMAIN__", #longdesc
           "",             #Status
	   "special",      #Profile
           "domain",       #Type         
           "",             #Alias URL
           2,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
       , ( "__DOMAIN__",   #Domain
           "*All public projects in domain",   #Name
           "None",         #License
           "All the public projects in __DOMAIN__", #short desc
           "The group holding all projects in __DOMAIN__", #longdesc
           "",             #Status
	   "special",      #Profile
           "domain",       #Type         
           "",             #Alias URL
           2,              #Member Policy
           "root",         #Proposed By
b           "root")         #Appoved By
       , ( "__DOMAIN__",   #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 "__DOMAIN__", 
            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
@d76 2
a77 2
           "root")         #Appoved By
       , ( "sc-dev2.sp.collab.net",   #project for docs and the "default" project (??)
@

