2008-12-16 16:26:33 +00:00
|
|
|
package Hydra::Schema::BuildInputs;
|
2008-11-05 06:23:41 +00:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class';
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("Core");
|
2008-11-11 12:54:37 +00:00
|
|
|
__PACKAGE__->table("BuildInputs");
|
2008-11-05 06:23:41 +00:00
|
|
|
__PACKAGE__->add_columns(
|
2008-11-09 00:48:36 +00:00
|
|
|
"id",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-09 00:48:36 +00:00
|
|
|
"build",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_foreign_key => 1,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
"name",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
"type",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 0,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
"uri",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
"revision",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
"tag",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-09 00:48:36 +00:00
|
|
|
"value",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-09 00:48:36 +00:00
|
|
|
"dependency",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
default_value => undef,
|
|
|
|
is_foreign_key => 1,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 23:08:16 +00:00
|
|
|
"path",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-12 23:14:57 +00:00
|
|
|
"sha256hash",
|
2009-07-07 13:59:59 +00:00
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
default_value => undef,
|
|
|
|
is_nullable => 1,
|
|
|
|
size => undef,
|
|
|
|
},
|
2008-11-05 06:23:41 +00:00
|
|
|
);
|
2008-11-09 00:48:36 +00:00
|
|
|
__PACKAGE__->set_primary_key("id");
|
2009-07-07 13:59:59 +00:00
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"build",
|
|
|
|
"Hydra::Schema::Builds",
|
|
|
|
{ id => "build" },
|
|
|
|
{ join_type => "LEFT OUTER" },
|
|
|
|
);
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"dependency",
|
|
|
|
"Hydra::Schema::Builds",
|
|
|
|
{ id => "dependency" },
|
|
|
|
{ join_type => "LEFT OUTER" },
|
|
|
|
);
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-05-09 16:10:50 +00:00
|
|
|
|
2009-10-21 12:25:43 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04999_06 @ 2009-10-21 14:17:55
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7blxTiVkvfdukDiXCoD+Lw
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-07-07 13:59:59 +00:00
|
|
|
use Hydra::Helper::Nix;
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-05-11 13:56:52 +00:00
|
|
|
sub addSequence {
|
|
|
|
my $hydradbi = getHydraDBPath ;
|
|
|
|
if ($hydradbi =~ m/^dbi:Pg/) {
|
|
|
|
__PACKAGE__->sequence('builds_id_seq');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
addSequence ;
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2008-11-11 12:54:37 +00:00
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
2008-11-05 06:23:41 +00:00
|
|
|
1;
|