Notify the queue runner when a build is deleted

This commit is contained in:
Eelco Dolstra
2015-07-08 11:43:35 +02:00
parent 95c4294560
commit 89fb723ace
3 changed files with 28 additions and 1 deletions

10
src/sql/upgrade-35.sql Normal file
View File

@@ -0,0 +1,10 @@
create function notifyBuildDeleted() returns trigger as $$
begin
execute 'notify builds_deleted';
return null;
end;
$$ language plpgsql;
create trigger BuildDeleted after delete on Builds
for each row
execute procedure notifyBuildDeleted();