Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Added participant_id column to emails
Browse files Browse the repository at this point in the history
  • Loading branch information
aandis committed Jan 17, 2016
1 parent 57ec835 commit 326ea2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/branch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE emails ADD COLUMN participant_id bigint DEFAULT NULL
REFERENCES participants(id) ON UPDATE RESTRICT ON DELETE RESTRICT;

ALTER TABLE emails ADD UNIQUE (participant_id, address);

0 comments on commit 326ea2b

Please sign in to comment.