2009-03-13 14:49:25 +00:00
|
|
|
package Hydra::Schema::Jobs;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class';
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("Core");
|
|
|
|
__PACKAGE__->table("Jobs");
|
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"project",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_foreign_key => 1,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2009-03-13 14:49:25 +00:00
|
|
|
"jobset",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_foreign_key => 1,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2009-03-13 14:49:25 +00:00
|
|
|
"name",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2009-03-13 14:49:25 +00:00
|
|
|
"active",
|
2009-07-07 13:59:59 +00:00
|
|
|
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef },
|
2009-03-13 14:49:25 +00:00
|
|
|
"errormsg",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2009-03-13 14:49:25 +00:00
|
|
|
"firstevaltime",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2009-03-13 14:49:25 +00:00
|
|
|
"lastevaltime",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
|
|
|
"disabled",
|
|
|
|
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
|
2009-03-13 14:49:25 +00:00
|
|
|
);
|
|
|
|
__PACKAGE__->set_primary_key("project", "jobset", "name");
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"builds",
|
|
|
|
"Hydra::Schema::Builds",
|
|
|
|
{
|
|
|
|
"foreign.job" => "self.name",
|
|
|
|
"foreign.jobset" => "self.jobset",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
|
|
|
);
|
|
|
|
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"jobset",
|
|
|
|
"Hydra::Schema::Jobsets",
|
|
|
|
{ name => "jobset", project => "project" },
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04999_06 @ 2009-10-15 23:14:39
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c0OEe2zPd/E4vh0PRXm4Ag
|
2009-03-13 14:49:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
|
|
1;
|