Skip to content

Commit be88c5b

Browse files
committed
add foreign key constraint for release_build_status
1 parent c660711 commit be88c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/20240311202914_release_status_materialized.up.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DROP VIEW release_build_status;
22
CREATE TABLE release_build_status (
3-
rid INTEGER NOT NULL PRIMARY KEY,
3+
rid INTEGER NOT NULL PRIMARY KEY REFERENCES releases ON DELETE CASCADE,
44
last_build_time timestamp with time zone,
55
build_status build_status NOT NULL
66
);

0 commit comments

Comments
 (0)