This commit is contained in:
Eelco Dolstra 2016-10-27 13:43:05 +02:00
parent cc866bff1e
commit 41a020e323

View file

@ -6,7 +6,7 @@ create trigger JobsetsDeleted after delete on Jobsets execute procedure notifyJo
create function notifyJobsetSchedulingChanged() returns trigger as 'begin notify jobset_scheduling_changed; return null; end;' language plpgsql; create function notifyJobsetSchedulingChanged() returns trigger as 'begin notify jobset_scheduling_changed; return null; end;' language plpgsql;
create trigger JobsetSchedulingChanged after update on Jobsets for each row create trigger JobsetSchedulingChanged after update on Jobsets for each row
when ((old.triggerTime is distinct from new.triggerTime) and (new.triggerTime is not null)) when (((old.triggerTime is distinct from new.triggerTime) and (new.triggerTime is not null))
or old.checkInterval != new.checkInterval or old.checkInterval != new.checkInterval
or old.enabled != new.enabled or old.enabled != new.enabled)
execute procedure notifyJobsetSchedulingChanged(); execute procedure notifyJobsetSchedulingChanged();