From 71c121055a03b24e24764a5d701662f894f96ab6 Mon Sep 17 00:00:00 2001 From: tilpner Date: Thu, 11 Jun 2020 12:55:46 +0200 Subject: schema: repo should be PK of is_labeled --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c15fe58..cf40946 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ async fn init_db(conn: &mut Conn) { CREATE TABLE IF NOT EXISTS is_labeled( repo integer, issue integer, label integer RFERENCES labels, - PRIMARY KEY (issue, label), + PRIMARY KEY (repo, issue, label), FOREIGN KEY (repo, issue) REFERENCES issues ); "#).execute(conn) -- cgit v1.2.3