From 6342464110aa8c6dc2c958dbe8a94ad2801676a6 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 7 Oct 2013 10:01:40 -0400 Subject: [PATCH] Add DB columns for when to notify responsible committers and which inputs should be checked Signed-off-by: Shea Levy --- src/sql/hydra.sql | 3 +++ src/sql/upgrade-23.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/sql/upgrade-23.sql diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index 23fc7925..2df03620 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -57,6 +57,7 @@ create table Jobsets ( triggerTime integer, -- set if we were triggered by a push event enabled integer not null default 1, enableEmail integer not null default 1, + emailResponsible integer not null default 0, -- whether to email committers responsible for a build change hidden integer not null default 0, emailOverride text not null, keepnr integer not null default 3, @@ -77,6 +78,7 @@ create table JobsetInputs ( jobset text not null, name text not null, type text not null, -- "svn", "path", "uri", "string", "boolean", "nix" + checkResponsible integer not null default 0, -- whether this input should be checked for responsbile commits primary key (project, jobset, name), foreign key (project, jobset) references Jobsets(project, name) on delete cascade on update cascade ); @@ -257,6 +259,7 @@ create table BuildInputs ( uri text, revision text, value text, + checkResponsible integer not null default 0, dependency integer, -- build ID of the input, for type == 'build' path text, diff --git a/src/sql/upgrade-23.sql b/src/sql/upgrade-23.sql new file mode 100644 index 00000000..2a53fe85 --- /dev/null +++ b/src/sql/upgrade-23.sql @@ -0,0 +1,3 @@ +alter table Jobsets add column emailResponsible integer not null default 0; +alter table JobsetInputs add column checkResponsible integer not null default 0; +alter table BuildInputs add column checkResponsible integer not null default 0;