Skip to content

Commit

Permalink
fix(sql): Adding cascade for ketchup
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 27, 2021
1 parent 3df5463 commit 9dc41fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ CREATE TYPE ketchup.ketchup_frequency AS ENUM ('none', 'daily', 'weekly');
-- ketchup
CREATE TABLE ketchup.ketchup (
user_id BIGINT NOT NULL REFERENCES ketchup.user(id) ON DELETE CASCADE,
repository_id BIGINT NOT NULL REFERENCES ketchup.repository(id),
repository_id BIGINT NOT NULL REFERENCES ketchup.repository(id) ON DELETE CASCADE,
pattern TEXT NOT NULL DEFAULT 'stable',
version TEXT NOT NULL,
frequency ketchup_frequency NOT NULL DEFAULT 'daily',
Expand Down

0 comments on commit 9dc41fb

Please sign in to comment.