From de55303197d997c4fc5503b52b1321ae9528583d Mon Sep 17 00:00:00 2001 From: Renzo Carbonara Date: Fri, 9 Dec 2016 18:18:17 +0100 Subject: [PATCH] Fix SQL syntax for migration 50. It failed with PostgreSQL 9.4. (#416) --- src/sql/hydra.sql | 4 ++-- src/sql/upgrade-50.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index e8f958b1..7d73eb4c 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -93,8 +93,8 @@ 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 trigger JobsetSchedulingChanged after update on Jobsets for each row when (((old.triggerTime is distinct from new.triggerTime) and (new.triggerTime is not null)) - or old.checkInterval != new.checkInterval - or old.enabled != new.enabled) + or (old.checkInterval != new.checkInterval) + or (old.enabled != new.enabled)) execute procedure notifyJobsetSchedulingChanged(); #endif diff --git a/src/sql/upgrade-50.sql b/src/sql/upgrade-50.sql index b394500c..31756791 100644 --- a/src/sql/upgrade-50.sql +++ b/src/sql/upgrade-50.sql @@ -7,6 +7,6 @@ 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 trigger JobsetSchedulingChanged after update on Jobsets for each row when (((old.triggerTime is distinct from new.triggerTime) and (new.triggerTime is not null)) - or old.checkInterval != new.checkInterval - or old.enabled != new.enabled) + or (old.checkInterval != new.checkInterval) + or (old.enabled != new.enabled)) execute procedure notifyJobsetSchedulingChanged();