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

Commit

Permalink
Add id column in emails and foreign key constraint to pacakges.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandis committed Oct 23, 2016
1 parent c7bc802 commit 0b5b2ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/branch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ BEGIN;
);

CREATE TABLE package_emails
( package_id bigint NOT NULL
, email text NOT NULL
( id bigserial PRIMARY KEY
, package_id bigint NOT NULL REFERENCES packages ON UPDATE CASCADE ON DELETE RESTRICT
, email text NOT NULL
, UNIQUE (package_id, email)
);

Expand Down

0 comments on commit 0b5b2ae

Please sign in to comment.