From 54a122b49cd9606ba8c00af427afe9d9fe4c1934 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Mar 2009 08:35:39 +0000 Subject: [PATCH] * DB integrity: when deleting a build, get rid of its build steps. --- src/sql/hydra.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index 7b82d9f8..306bb3c4 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -159,6 +159,7 @@ create trigger cascadeBuildDeletion delete from BuildResultInfo where id = old.id; delete from BuildInputs where build = old.id; delete from BuildProducts where build = old.id; + delete from BuildSteps where id = old.id; end;