head	1.6;
access;
symbols
	TIGRIS_1_1_0RC2:1.5
	TIGRIS_1_1_0RC1:1.5
	TIGRIS_1_1:1.5.0.4
	TIGRIS_1_0_8:1.5
	TIGRIS_1_0_8RC3:1.5
	TIGRIS_1_0_8RC2:1.5
	TIGRIS_1_0_8RC1:1.5
	TIGRIS_1_0_7:1.5
	TIGRIS_1_0_7RC3:1.5
	TIGRIS_1_0_7RC2:1.5
	TIGRIS_1_0_7RC1:1.5
	TIGRIS_1_0_6:1.5
	TIGRIS_1_0_6RC5:1.5
	TIGRIS_1_0_6RC4:1.5
	TIGRIS_1_0_6RC3:1.5
	TIGRIS_1_0_6RC2:1.5
	TIGRIS_1_0_6RC1:1.5
	TIGRIS_1_0_5:1.5
	TIGRIS_1_0_5RC6:1.5
	TIGRIS_1_0_5RC5:1.5
	TIGRIS_1_0_5RC4:1.5
	TIGRIS_1_0_5RC3:1.5
	TIGRIS_1_0_5RC2:1.5
	TIGRIS_1_0_5RC1:1.5
	TIGRIS_1_0_4:1.5
	TIGRIS_1_0_3:1.5
	TIGRIS_1_0_2:1.5
	TIGRIS_1_0_1:1.5
	TIGRIS_1_0:1.5.0.6
	TIGRIS_1_0_0:1.5
	TIGRIS_1_0_0_RC1:1.5.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.3
	TIGRIS_0_9_2_3:1.3
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.3
	TIGRIS_0_9_2_1:1.3
	TIGRIS_0_9_2:1.3.0.4
	TIGRIS_0_9_0:1.3.0.2
	TIGRIS_0_8_4:1.2.0.2;
locks; strict;
comment	@# @;


1.6
date	2001.06.18.22.12.21;	author leonardr;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.07.22.29.52;	author edk;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.02.22.02.06;	author edk;	state Exp;
branches;
next	1.3;

1.3
date	2000.12.14.16.46.43;	author edk;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.03.19.27.33;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.29.03.26.52;	author edk;	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.6
log
@Huge patch of the day: Got rid of redundant HELM_DOMAIN table. The project representation of the domain and the host is now the canonical one. Host and Domain now subclass ProjectGroup. The canonical representation of a project's membership in a domain group is now the corresponding mapping in HELM_PROJECT_PROJECTGROUP. Schema changes: No more HELM_DOMAIN table (obviously); no more DOMAIN_ID in HELM_PROJECT; HELM_USER and HELM_VC_VIEW now have foreign keys in HELM_PROJECT instead of HELM_DOMAIN.
@
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,
  IS_PRIVATE        varchar(1) default 'N' NOT NULL,
  DESCRIPTION       text
);

insert into xxxx_populate_MailingList
          ( DOMAIN_NAME, 
            PROJECT_NAME,
            LIST_NAME, 
            TYPE, 
            IS_PRIVATE, 
            DESCRIPTION
          )
##########################################################################
# Special projects.
  values 
         ( "__DOMAIN__",              #Domain
           "www",                     #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "cvs notification for changes to project www's content") # Desc
       , ( "__DOMAIN__",              #Domain
           "www",                     #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "notification for issuezilla re: project www") # Desc
       , ( "__DOMAIN__",              #Domain
           "www",                     #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "N",                       # IS_PRIVATE
           "announcements related to project www") # Desc
       , ( "__DOMAIN__",              #Domain
           "www",                     #Project Name
           "admin",                   #List Name
           "unmoderated",             # Type
           "Y",                       # IS_PRIVATE
           "admin information about this domain") # Desc
       , ( "__DOMAIN__",              #Domain
           "testproject",             #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "cvs notification for changes to project testproject") # Desc
       , ( "__DOMAIN__",              #Domain
           "testproject",             #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "notification for issuezilla re: project testproject") # Desc
       , ( "__DOMAIN__",              #Domain
           "testproject",             #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "N",                       # IS_PRIVATE
           "announcements related to project testproject") # Desc
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "cvs notification for changes to project look") # Desc
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "N",                       # IS_PRIVATE
           "notification for issuezilla re: project look") # Desc
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "N",                       # IS_PRIVATE
           "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,
            IS_PRIVATE,
            DESCRIPTION
           )
   select Project.PROJECT_ID,
          Tmp.LIST_NAME, 
          Tmp.TYPE, 
          Tmp.IS_PRIVATE, 
          Tmp.DESCRIPTION
     from xxxx_populate_MailingList as Tmp,
          HELM_PROJECT as Domain,
          HELM_PROJECT as Project,
          HELM_PROJECT_PROJECTGROUP as PGroup
     where Tmp.DOMAIN_NAME = Domain.NAME 
       and PGroup.PROJECT_ID = Project.PROJECT_ID
       and PGroup.PROJECT_GROUP_ID = Domain.PROJECT_ID
       and Project.NAME = Tmp.PROJECT_NAME
;

drop table xxxx_populate_MailingList;

@


1.5
log
@switch list type for admin to unmoderated, with the private flag on
@
text
@d109 3
a111 2
          HELM_DOMAIN as Domain,
          HELM_PROJECT as Project
d113 2
a114 1
       and Domain.DOMAIN_ID = Project.DOMAIN_ID
@


1.4
log
@explicitly initialize IS_PRIVATE, and make admin@@www private by default.
@
text
@d51 1
a51 1
           "unmoderated-private",     # Type
@


1.3
log
@use moderated/unmoderated instead of announce/automated-notification
@
text
@d15 1
d24 1
d34 1
d40 1
d46 1
d51 3
a53 2
           "unmoderated",             # Type
           "notification for issuezilla re: project www") # Desc
d58 1
d64 1
d70 1
d76 1
d82 1
d88 1
d100 1
d106 1
@


1.2
log
@* create look project (needed since site admin needs to be able to control
  access to it to change branding)
* add admin@@{domain} ( or admin@@www.{domain} ) mailing list
* change all default addresses to admin@@{domain}
* add webmaster, postmaster, and mailer-daemon addresses
@
text
@d31 1
a31 1
           "automated-notification",  # Type
d36 1
a36 1
           "automated-notification",  # Type
d41 1
a41 1
           "announce",                # Type
d46 1
a46 1
           "automated-notification",  # Type
d51 1
a51 1
           "automated-notification",  # Type
d56 1
a56 1
           "automated-notification",  # Type
d61 1
a61 1
           "announce",                # Type
d66 1
a66 1
           "automated-notification",  # Type
d71 1
a71 1
           "automated-notification",  # Type
d76 1
a76 1
           "announce",                # Type
@


1.1
log
@populate HELM_MAILINGLIST with the required mailing lists for the projects
which are created (other than the category projects & other special
projects).  perhaps this should be done differently -- is there a simple
way to distinguish the "ordinary" projects?
@
text
@d44 6
a49 1
           "other",                   #Project Name
d52 1
a52 1
           "cvs notification for changes to project other's content") # Desc
d54 1
a54 1
           "other",                   #Project Name
d57 1
a57 1
           "notification for issuezilla re: project other") # Desc
d59 1
a59 1
           "other",                   #Project Name
d62 1
a62 1
           "announcements related to project other") # Desc
d64 1
a64 1
           "testproject",             #Project Name
d67 1
a67 1
           "cvs notification for changes to project testproject") # Desc
d69 1
a69 1
           "testproject",             #Project Name
d72 1
a72 1
           "notification for issuezilla re: project testproject") # Desc
d74 1
a74 1
           "testproject",             #Project Name
d77 1
a77 1
           "announcements related to project testproject") # Desc
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d31 1
a31 1
           "unmoderated",             # Type
d36 1
a36 1
           "unmoderated",             # Type
d41 1
a41 1
           "moderated",               # Type
d44 14
a57 4
           "www",                     #Project Name
           "admin",                   #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project www") # Desc
d61 1
a61 1
           "unmoderated",             # Type
d66 1
a66 1
           "unmoderated",             # Type
d71 1
a71 1
           "moderated",               # Type
a72 15
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "cvs",                     #List Name
           "unmoderated",             # Type
           "cvs notification for changes to project look") # Desc
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "issues",                  #List Name
           "unmoderated",             # Type
           "notification for issuezilla re: project look") # Desc
       , ( "__DOMAIN__",              #Domain
           "look",                    #Project Name
           "announce",                #List Name
           "moderated",               # Type
           "announcements related to project look") # Desc
@


