* Mark the "current" builds in a jobset, i.e. those corresponding to

the derivations that the jobset currently contains.  This is
  necessary to allow the "latest" channel to contain the correct
  builds when the sources of a jobset are reverted.
This commit is contained in:
Eelco Dolstra
2009-10-02 16:06:28 +00:00
parent 9d99bb3342
commit e9cf409d80
22 changed files with 98 additions and 59 deletions

View File

@ -26,6 +26,8 @@ create table Builds (
license text, -- meta.license
homepage text, -- meta.homepage
maintainers text, -- meta.maintainers (concatenated, comma-separated)
isCurrent integer default 0,
foreign key (project) references Projects(name), -- ignored by sqlite
foreign key (project, jobset) references Jobsets(project, name), -- ignored by sqlite
@ -409,6 +411,5 @@ create index IndexBuildInputsByDependency on BuildInputs(dependency);
create index IndexBuildsByTimestamp on Builds(timestamp);
create index IndexBuildsByJobAndSystem on Builds(project, jobset, job, system);
create index IndexBuildResultInfo on BuildResultInfo(id); -- primary key index, not created automatically by PostgreSQL
create index indexbuild on buildproducts(build)
create index indexbuildtype on buildproducts(build, type)
create index IndexBuild on BuildProducts(build);
create index IndexBuildType on BuildProducts(build, type);