Fix schema update for schedulingShares

This commit is contained in:
dantheho 2015-10-15 14:42:30 -07:00 committed by Eelco Dolstra
parent 7b9f488949
commit 8ecd84c160

View file

@ -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);