Correct primary key on pipeline_refs table

This commit is contained in:
2023-05-04 20:15:37 -06:00
parent 63c0f83c16
commit 89be2c4816
+3 -1
View File
@@ -181,10 +181,12 @@ CREATE TABLE runners (
);
CREATE TABLE pipeline_refs (
name TEXT PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
pipeline_id UUID NOT NULL,
hash TEXT NOT NULL,
PRIMARY KEY(name, pipeline_id),
CONSTRAINT fk_pipeline_id
FOREIGN KEY(pipeline_id)
REFERENCES pipelines(id)