2011-12-05 14:29:29 +01:00
|
|
|
use utf8;
|
2008-11-25 11:01:42 +00:00
|
|
|
package Hydra::Schema::Jobsets;
|
2008-11-04 18:23:28 +00:00
|
|
|
|
2009-10-23 15:05:16 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
Hydra::Schema::Jobsets
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-04 18:23:28 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2013-06-17 12:34:21 -04:00
|
|
|
=head1 COMPONENTS LOADED
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L<Hydra::Component::ToJSON>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head1 TABLE: C<Jobsets>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
2008-11-04 18:23:28 +00:00
|
|
|
|
2010-01-06 13:07:59 +00:00
|
|
|
__PACKAGE__->table("Jobsets");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head1 ACCESSORS
|
|
|
|
|
|
|
|
=head2 name
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 project
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 description
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 nixexprinput
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 nixexprpath
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 errormsg
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 errortime
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 lastcheckedtime
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
2013-02-25 21:04:10 +01:00
|
|
|
=head2 triggertime
|
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
is_nullable: 1
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
=head2 enabled
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
default_value: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 enableemail
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
default_value: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
2010-06-04 14:43:28 +00:00
|
|
|
=head2 hidden
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-06-04 14:43:28 +00:00
|
|
|
default_value: 0
|
|
|
|
is_nullable: 0
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
=head2 emailoverride
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
2010-08-10 06:48:45 +00:00
|
|
|
=head2 keepnr
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-08-10 06:48:45 +00:00
|
|
|
default_value: 3
|
|
|
|
is_nullable: 0
|
|
|
|
|
2013-05-02 17:51:38 +02:00
|
|
|
=head2 checkinterval
|
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
default_value: 300
|
|
|
|
is_nullable: 0
|
|
|
|
|
2013-09-21 14:47:52 +00:00
|
|
|
=head2 schedulingshares
|
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
default_value: 100
|
|
|
|
is_nullable: 0
|
|
|
|
|
2013-09-25 16:21:16 +02:00
|
|
|
=head2 fetcherrormsg
|
|
|
|
|
|
|
|
data_type: 'text'
|
|
|
|
is_nullable: 1
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
=cut
|
|
|
|
|
2010-01-06 13:07:59 +00:00
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"name",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"project",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"description",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"nixexprinput",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"nixexprpath",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"errormsg",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"errortime",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", is_nullable => 1 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"lastcheckedtime",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", is_nullable => 1 },
|
2013-02-25 21:04:10 +01:00
|
|
|
"triggertime",
|
|
|
|
{ data_type => "integer", is_nullable => 1 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"enabled",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", default_value => 1, is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"enableemail",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", default_value => 1, is_nullable => 0 },
|
2010-06-04 14:43:28 +00:00
|
|
|
"hidden",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", default_value => 0, is_nullable => 0 },
|
2010-01-06 13:07:59 +00:00
|
|
|
"emailoverride",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2010-08-10 06:48:45 +00:00
|
|
|
"keepnr",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", default_value => 3, is_nullable => 0 },
|
2013-05-02 17:51:38 +02:00
|
|
|
"checkinterval",
|
|
|
|
{ data_type => "integer", default_value => 300, is_nullable => 0 },
|
2013-09-21 14:47:52 +00:00
|
|
|
"schedulingshares",
|
|
|
|
{ data_type => "integer", default_value => 100, is_nullable => 0 },
|
2013-09-25 16:21:16 +02:00
|
|
|
"fetcherrormsg",
|
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2010-01-06 13:07:59 +00:00
|
|
|
);
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head1 PRIMARY KEY
|
2010-01-06 13:07:59 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=over 4
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=item * L</project>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=item * L</name>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=back
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
2010-01-06 13:07:59 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
__PACKAGE__->set_primary_key("project", "name");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head1 RELATIONS
|
|
|
|
|
|
|
|
=head2 builds
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
Related object: L<Hydra::Schema::Builds>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-04 18:23:28 +00:00
|
|
|
__PACKAGE__->has_many(
|
2011-12-05 14:29:29 +01:00
|
|
|
"builds",
|
|
|
|
"Hydra::Schema::Builds",
|
2008-11-06 18:26:29 +00:00
|
|
|
{
|
|
|
|
"foreign.jobset" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
2013-01-22 22:48:02 +01:00
|
|
|
undef,
|
2008-11-04 18:23:28 +00:00
|
|
|
);
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head2 jobs
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::Jobs>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-03-13 14:49:25 +00:00
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"jobs",
|
|
|
|
"Hydra::Schema::Jobs",
|
|
|
|
{
|
|
|
|
"foreign.jobset" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
2013-01-22 22:48:02 +01:00
|
|
|
undef,
|
2009-03-13 14:49:25 +00:00
|
|
|
);
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head2 jobsetevals
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
Related object: L<Hydra::Schema::JobsetEvals>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-10-21 12:25:43 +00:00
|
|
|
__PACKAGE__->has_many(
|
2011-12-05 14:29:29 +01:00
|
|
|
"jobsetevals",
|
|
|
|
"Hydra::Schema::JobsetEvals",
|
2009-10-21 12:25:43 +00:00
|
|
|
{
|
|
|
|
"foreign.jobset" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
2013-01-22 22:48:02 +01:00
|
|
|
undef,
|
2009-10-21 12:25:43 +00:00
|
|
|
);
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head2 jobsetinput
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::JobsetInputs>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"jobsetinput",
|
|
|
|
"Hydra::Schema::JobsetInputs",
|
|
|
|
{ jobset => "name", name => "nixexprinput", project => "project" },
|
2013-01-22 22:48:02 +01:00
|
|
|
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
|
2011-12-05 14:29:29 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
=head2 jobsetinputs
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
Related object: L<Hydra::Schema::JobsetInputs>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-11-17 13:55:22 +00:00
|
|
|
__PACKAGE__->has_many(
|
2011-12-05 14:29:29 +01:00
|
|
|
"jobsetinputs",
|
|
|
|
"Hydra::Schema::JobsetInputs",
|
2009-11-17 13:55:22 +00:00
|
|
|
{
|
|
|
|
"foreign.jobset" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
2013-01-22 22:48:02 +01:00
|
|
|
undef,
|
2009-11-17 13:55:22 +00:00
|
|
|
);
|
2008-11-04 18:23:28 +00:00
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head2 project
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::Projects>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2013-01-22 22:48:02 +01:00
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"project",
|
|
|
|
"Hydra::Schema::Projects",
|
|
|
|
{ name => "project" },
|
|
|
|
{ is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
|
|
);
|
2011-12-05 14:29:29 +01:00
|
|
|
|
2013-10-14 20:07:26 +02:00
|
|
|
=head2 starredjobs
|
2008-11-04 18:23:28 +00:00
|
|
|
|
2013-10-14 20:07:26 +02:00
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::StarredJobs>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"starredjobs",
|
|
|
|
"Hydra::Schema::StarredJobs",
|
|
|
|
{
|
|
|
|
"foreign.jobset" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
|
|
|
undef,
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-14 15:46:29
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DTAGxP5RFvcNxP/ciJGo4Q
|
2010-01-06 13:07:59 +00:00
|
|
|
|
2013-10-24 11:01:17 -04:00
|
|
|
my %hint = (
|
2013-10-29 13:54:11 -04:00
|
|
|
columns => [
|
|
|
|
"enabled",
|
|
|
|
"errormsg",
|
|
|
|
"fetcherrormsg",
|
2014-01-23 12:44:02 +01:00
|
|
|
"emailoverride",
|
|
|
|
"nixexprpath",
|
|
|
|
"nixexprinput"
|
2013-10-29 13:54:11 -04:00
|
|
|
],
|
2013-10-24 13:18:36 -04:00
|
|
|
eager_relations => {
|
2013-10-24 11:01:17 -04:00
|
|
|
jobsetinputs => "name"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
sub json_hint {
|
|
|
|
return \%hint;
|
|
|
|
}
|
|
|
|
|
2008-11-04 18:23:28 +00:00
|
|
|
1;
|