From 8ecd84c16063b80d59141dd43d8a5fde81cc82c4 Mon Sep 17 00:00:00 2001 From: dantheho Date: Thu, 15 Oct 2015 14:42:30 -0700 Subject: [PATCH] Fix schema update for schedulingShares --- src/sql/upgrade-41.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/upgrade-41.sql b/src/sql/upgrade-41.sql index 509a5351..30784d96 100644 --- a/src/sql/upgrade-41.sql +++ b/src/sql/upgrade-41.sql @@ -2,4 +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); alter table Jobsets add constraint jobsets_check check (schedulingShares > 0);