From 47593235142c8be99f53f2543e93330338f16f7e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 16 Oct 2015 16:59:07 +0200 Subject: [PATCH] Tweak --- src/sql/upgrade-41.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/upgrade-41.sql b/src/sql/upgrade-41.sql index 30784d96..5f2fd09a 100644 --- a/src/sql/upgrade-41.sql +++ b/src/sql/upgrade-41.sql @@ -2,5 +2,5 @@ create function notifyJobsetSharesChanged() returns trigger as 'begin notify job create trigger JobsetSharesChanged after update on Jobsets for each row when (old.schedulingShares != new.schedulingShares) execute procedure notifyJobsetSharesChanged(); -update Jobsets SET (schedulingShares) = (1) where NOT (schedulingShares > 0); +update Jobsets set schedulingShares = 1 where schedulingShares <= 0; alter table Jobsets add constraint jobsets_check check (schedulingShares > 0);