head	1.2;
access;
symbols
	HELM_PEER_PORT_BRANCH:1.1.1.1 dlr:1.1.1;
locks; strict;
comment	@# @;


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

1.1
date	2001.02.21.00.36.30;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.36.30;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove generated files which were added to cvs by accident
@
text
@

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

drop table if exists xxxx_populate_MailingList;
create table xxxx_populate_MailingList (
  DOMAIN_NAME       varchar(255) NOT NULL,
  PROJECT_NAME      varchar(64) DEFAULT 'www' NOT NULL,
  LIST_NAME         varchar(64) NOT NULL,  
  TYPE              varchar(64) NOT NULL,
  DESCRIPTION       text
);

insert into xxxx_populate_MailingList
          ( DOMAIN_NAME, 
            PROJECT_NAME,
            LIST_NAME, 
            TYPE, 
            DESCRIPTION
          )
##########################################################################
# Special projects.
  values 
         ( "sc-dev2.sp.collab.net",              #Domain
           "www",                     #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "cvs notification for changes to project www's content") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "www",                     #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project www") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "www",                     #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "announcements related to project www") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "www",                     #Project Name
           "admin",                   #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project www") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "testproject",             #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "cvs notification for changes to project testproject") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "testproject",             #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project testproject") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "testproject",             #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "announcements related to project testproject") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "look",                    #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "cvs notification for changes to project look") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "look",                    #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project look") # Desc
       , ( "sc-dev2.sp.collab.net",              #Domain
           "look",                    #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "announcements related to project look") # Desc
;

##
## now insert the values into the correct table replacing
## names with ids from the corresponding tables
##
insert into HELM_MAILINGLIST 
          ( PROJECT_ID,
            LIST_NAME,
            TYPE,
            DESCRIPTION
           )
   select Project.PROJECT_ID,
          Tmp.LIST_NAME, 
          Tmp.TYPE, 
          Tmp.DESCRIPTION
     from xxxx_populate_MailingList as Tmp,
          HELM_DOMAIN as Domain,
          HELM_PROJECT as Project
     where Tmp.DOMAIN_NAME = Domain.NAME 
       and Domain.DOMAIN_ID = Project.DOMAIN_ID
       and Project.NAME = Tmp.PROJECT_NAME
;

drop table xxxx_populate_MailingList;

@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@@
