diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index cc682665..f43bc2e0 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -876,15 +876,10 @@ sub checkBuild { my $build; txn_do($db, sub { - # Update the last evaluation time in the database. my $job = $jobset->jobs->update_or_create( { name => $jobName - , lastevaltime => time }); - $job->update({firstevaltime => time}) - unless defined $job->firstevaltime; - # Don't add a build that has already been scheduled for this # job, or has been built but is still a "current" build for # this job. Note that this means that if the sources of a job diff --git a/src/lib/Hydra/Schema/Jobs.pm b/src/lib/Hydra/Schema/Jobs.pm index 7a86eb6c..bc4e6726 100644 --- a/src/lib/Hydra/Schema/Jobs.pm +++ b/src/lib/Hydra/Schema/Jobs.pm @@ -40,27 +40,11 @@ __PACKAGE__->table("Jobs"); data_type: 'text' is_nullable: 0 -=head2 active - - data_type: 'integer' - default_value: 1 - is_nullable: 0 - =head2 errormsg data_type: 'text' is_nullable: 1 -=head2 firstevaltime - - data_type: 'integer' - is_nullable: 1 - -=head2 lastevaltime - - data_type: 'integer' - is_nullable: 1 - =cut __PACKAGE__->add_columns( @@ -70,14 +54,8 @@ __PACKAGE__->add_columns( { data_type => "text", is_foreign_key => 1, is_nullable => 0 }, "name", { data_type => "text", is_nullable => 0 }, - "active", - { data_type => "integer", default_value => 1, is_nullable => 0 }, "errormsg", { data_type => "text", is_nullable => 1 }, - "firstevaltime", - { data_type => "integer", is_nullable => 1 }, - "lastevaltime", - { data_type => "integer", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -148,7 +126,7 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-05-03 14:35:11 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uZ27Dcbywi99pCW7Ml4j3A +# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-05-23 16:09:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JgxEaCz/TW9YKa+HavRzXw 1; diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index f2885e73..c8108d73 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -100,13 +100,8 @@ create table Jobs ( jobset text not null, name text not null, - active integer not null default 1, -- !!! obsolete, remove - errorMsg text, -- evalution error for this job - firstEvalTime integer, -- first time the evaluator saw this job - lastEvalTime integer, -- last time the evaluator saw this job - primary key (project, jobset, name), foreign key (project) references Projects(name) on delete cascade on update cascade, foreign key (project, jobset) references Jobsets(project, name) on delete cascade on update cascade diff --git a/src/sql/upgrade-16.sql b/src/sql/upgrade-16.sql new file mode 100644 index 00000000..3741beb8 --- /dev/null +++ b/src/sql/upgrade-16.sql @@ -0,0 +1 @@ +alter table Jobs drop column active, drop column firstEvalTime, drop column lastEvalTime;