* BuildInputs table: link to dependencies, include store paths.

This commit is contained in:
Eelco Dolstra
2008-11-05 23:08:16 +00:00
parent 0ea294e77e
commit a77acc2a4f
11 changed files with 63 additions and 30 deletions

View File

@ -23,14 +23,20 @@ create table builds (
create table buildInputs (
buildId integer not null,
-- Copied from the jobSetInputs from which the build was created.
name text not null,
type text not null,
uri text,
revision integer,
tag text,
inputId integer, -- build ID of the input, for type == 'build'
path text not null,
primary key (buildId, name),
foreign key (buildId) references builds(id) on delete cascade -- ignored by sqlite
foreign key (inputId) references builds(id) -- ignored by sqlite
);