From 08447760cd3580504ff6d5c6ea8d5dd6cea1fb64 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 May 2018 11:05:56 -0700 Subject: diesel wants primary keys --- rust/migrations/2018-05-12-001226_init/up.sql | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust/migrations/2018-05-12-001226_init') diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index fabd2c3f..f4583949 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -181,6 +181,7 @@ ALTER TABLE release_rev -------------------- Inter-Entity Relations CREATE TABLE release_contrib ( + id BIGSERIAL PRIMARY KEY, release_rev BIGSERIAL REFERENCES release_rev(id) NOT NULL, creator_ident_id UUID REFERENCES creator_ident(id), stub TEXT, @@ -196,6 +197,7 @@ CREATE TABLE release_ref ( ); CREATE TABLE file_release ( + id BIGSERIAL PRIMARY KEY, file_rev BIGSERIAL REFERENCES file_rev(id) NOT NULL, target_release_ident_id UUID REFERENCES creator_ident(id) NOT NULL ); -- cgit v1.2.3