From f11fc5085cb744b0697eb0c17d4c664c7e10e831 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 18 Feb 2008 09:09:17 -0800 Subject: [PATCH] - removed CLA from group_emails.purpose; added mailing list. - Removed check for email address validity (we'll check by sending an email) - Added 'pending' type to person_emails. --- fas/fas2.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fas/fas2.sql b/fas/fas2.sql index 6900c00..c696a43 100644 --- a/fas/fas2.sql +++ b/fas/fas2.sql @@ -76,8 +76,7 @@ CREATE TABLE person_emails ( person_id integer references people(id) not null, purpose text not null, primary key (person_id, email), - check (purpose in ('bugzilla', 'primary', 'cla')), - check (email ~ '^[a-zA-Z0-9.]@[a-zA-Z0-9.][.][a-zA-Z]$'), + check (purpose in ('bugzilla', 'primary', 'cla', 'pending')), unique (person_id, purpose) ); @@ -117,7 +116,7 @@ create table group_emails ( group_id INTEGER references groups(id) not null, purpose text not null, primary key (group_id, email), - check (purpose in ('bugzilla', 'primary', 'cla')), + check (purpose in ('bugzilla', 'primary', 'mailing list')), unique (group_id, purpose) );