aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortilpner2020-06-11 12:55:46 +0200
committertilpner2020-06-11 12:55:46 +0200
commit71c121055a03b24e24764a5d701662f894f96ab6 (patch)
tree0607f5f521518aafd14edee88cf350cf3c918084 /src
parent7534fddaf7d7fd1edc4bb6a303c8597bf2033b19 (diff)
downloadgithub-label-feed-71c121055a03b24e24764a5d701662f894f96ab6.tar.gz
github-label-feed-71c121055a03b24e24764a5d701662f894f96ab6.tar.xz
github-label-feed-71c121055a03b24e24764a5d701662f894f96ab6.zip
schema: repo should be PK of is_labeled
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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)