- 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.
This commit is contained in:
parent
01414813e5
commit
f11fc5085c
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue