head	1.7;
access;
symbols
	TIGRIS_1_0_5:1.5
	TIGRIS_1_0:1.5.0.2;
locks; strict;
comment	@# @;


1.7
date	2001.06.19.17.28.23;	author leonardr;	state dead;
branches;
next	1.6;

1.6
date	2001.06.19.07.29.44;	author ed;	state Exp;
branches;
next	1.5;

1.5
date	2001.04.26.23.53.46;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2001.02.27.01.00.58;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.27.00.39.49;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.20.09.04.59;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.26.07.46.33;	author edk;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Since edk got rid of __DOMAIN__ reference, there's no need for this to be a .in
@
text
@

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

drop table if exists xxxx_populate_Project;
create table xxxx_populate_Project (
  NAME              varchar(64) DEFAULT '' NOT NULL,  
  LICENSE           varchar(64),
  SHORT_DESCRIPTION varchar(128),
  LONG_DESCRIPTION  text,
  STATUS            text,
  PROFILE           VARCHAR(11),
  TYPE              VARCHAR(8),
  ALIAS_URL         varchar(128),
  MEMBER_POLICY     integer,
  PROPOSED_BY       varchar(32) NOT NULL,
  APPROVED_BY       varchar(32) NOT NULL
);

insert into xxxx_populate_Project
          ( NAME, 
             LICENSE, 
             SHORT_DESCRIPTION,
             LONG_DESCRIPTION,
             STATUS, 
   	     PROFILE,
             TYPE,
             ALIAS_URL,
             MEMBER_POLICY, 
             PROPOSED_BY, 
             APPROVED_BY
           )
 
 ####################################################################### 
 # Category projects.
   values ( "other",        #Name
            "BSD",             #License
            "Other", #short desc
 	   "Any kind of project.",             #Long desc
            "",             #Status
 	   "category",     #Profile
            "category",     #Type         
            "",             #Alias URL
            3,              #Member Policy
            "root",         #Proposed By
            "root")         #Appoved By
 ;


 ##now insert the values into the correct table replacing
 ##names with ids from the corresponding tables

insert into HELM_PROJECT 
          ( NAME,
            LICENSE,
            SHORT_DESCRIPTION,
            LONG_DESCRIPTION,
            STATUS,
	    PROFILE,
	    TYPE,
            ALIAS_URL,
            MEMBER_POLICY,
            PROPOSED_BY,
            APPROVED_BY
           )
   select 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_USER as Proposed,
          HELM_USER as Appoved
     where Tmp.PROPOSED_BY = Proposed.LOGIN_NAME
       and Tmp.APPROVED_BY = Appoved.LOGIN_NAME
;

drop table xxxx_populate_Project;

@


1.6
log
@make the same adjustments now needed in all instances, after the changes
to helm's schema (removing HELM_DOMAIN)
@
text
@@


1.5
log
@Add a default category.
@
text
@a10 1
  DOMAIN_NAME       varchar(255) NOT NULL,
d16 2
a17 2
  PROFILE           enum('development', 'discussion', 'category', 'clone', 'special'),
  TYPE              enum('base', 'group', 'category', 'domain', 'host'),
d25 1
a25 2
          ( DOMAIN_NAME, 
             NAME, 
d40 1
a40 2
   values ( "__DOMAIN__",   #Domain
            "other",        #Name
d58 1
a58 2
          ( DOMAIN_ID,
            NAME,
d70 1
a70 2
   select Domain.DOMAIN_ID,
          Tmp.NAME, 
a81 1
          HELM_DOMAIN as Domain,
d84 1
a84 2
     where Tmp.DOMAIN_NAME = Domain.NAME 
       and Tmp.PROPOSED_BY = Proposed.LOGIN_NAME
@


1.4
log
@removed unneeded duplicate category, left it commented out
@
text
@d25 34
a58 30
## insert into xxxx_populate_Project
##           ( DOMAIN_NAME, 
##             NAME, 
##             LICENSE, 
##             SHORT_DESCRIPTION,
##             LONG_DESCRIPTION,
##             STATUS, 
## 	    PROFILE,
##             TYPE,
##             ALIAS_URL,
##             MEMBER_POLICY, 
##             PROPOSED_BY, 
##             APPROVED_BY
##           )
## 
## ##########################################################################
## # Category projects.
##   values ( "__DOMAIN__",   #Domain
##            "other",        #Name
##            "BSD",             #License
##            "Other", #short desc
## 	   "Any kind of project.",             #Long desc
##            "",             #Status
## 	   "category",     #Profile
##            "category",     #Type         
##            "",             #Alias URL
##            3,              #Member Policy
##            "root",         #Proposed By
##            "root")         #Appoved By
## ;
a59 4
##
## now insert the values into the correct table replacing
## names with ids from the corresponding tables
##
@


1.3
log
@took out duplicate category
@
text
@d25 30
@


1.2
log
@attempting to start defining categories, not working
@
text
@a24 30
insert into xxxx_populate_Project
          ( DOMAIN_NAME, 
            NAME, 
            LICENSE, 
            SHORT_DESCRIPTION,
            LONG_DESCRIPTION,
            STATUS, 
	    PROFILE,
            TYPE,
            ALIAS_URL,
            MEMBER_POLICY, 
            PROPOSED_BY, 
            APPROVED_BY
          )

##########################################################################
# Category projects.
  values ( "__DOMAIN__",   #Domain
           "other",        #Name
           "BSD",             #License
           "Other", #short desc
	   "Any kind of project.",             #Long desc
           "",             #Status
	   "category",     #Profile
           "category",     #Type         
           "",             #Alias URL
           3,              #Member Policy
           "root",         #Proposed By
           "root")         #Appoved By
;
@


1.1
log
@this includes a category, since instances are now required to provide
their own list of categories.
@
text
@d39 1
d44 1
a44 1
           "",             #License
d84 2
a85 2
          Proposed.userID, 
          Appoved.userID
d88 2
a89 2
          User as Proposed,
          User as Appoved
d91 2
a92 2
       and Tmp.PROPOSED_BY = Proposed.loginID
       and Tmp.APPROVED_BY = Appoved.loginID
@

