Notify the queue runner when a build is deleted
This commit is contained in:
10
src/sql/upgrade-35.sql
Normal file
10
src/sql/upgrade-35.sql
Normal 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();
|
||||
Reference in New Issue
Block a user