* Allow jobsets to be disabled.

This commit is contained in:
Eelco Dolstra
2009-10-08 11:39:16 +00:00
parent 158a746e94
commit 6cedee5476
24 changed files with 54 additions and 41 deletions

View File

@ -93,7 +93,9 @@
# Add the isCurrent column to Builds and use the obsolete Jobs.active to fill it in.
alter table builds add column isCurrent integer default 0;
update builds set isCurrent = 1 where id in (select max(id) from builds natural join (select distinct b.project, b.jobset, b.job, b.system from builds b join (select project, jobset, name from jobs where active = 1) j on b.project = j.project and b.jobset = j.jobset and b.job = j.name) b2 group by project, jobset, job, system);
alter table Jobsets add column enabled integer not null default 1;
* Job selection: