forked from lix-project/hydra
Tweak
This commit is contained in:
parent
8ecd84c160
commit
4759323514
|
@ -2,5 +2,5 @@ create function notifyJobsetSharesChanged() returns trigger as 'begin notify job
|
||||||
create trigger JobsetSharesChanged after update on Jobsets for each row
|
create trigger JobsetSharesChanged after update on Jobsets for each row
|
||||||
when (old.schedulingShares != new.schedulingShares) execute procedure notifyJobsetSharesChanged();
|
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);
|
alter table Jobsets add constraint jobsets_check check (schedulingShares > 0);
|
||||||
|
|
Loading…
Reference in a new issue