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",
|
|
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
|
|
"build",
|
|
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
2008-11-05 06:23:41 +00:00
|
|
|
"name",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"type",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"uri",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"revision",
|
|
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
|
|
"tag",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
2008-11-09 00:48:36 +00:00
|
|
|
"value",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"dependency",
|
2008-11-05 23:08:16 +00:00
|
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
|
|
"path",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
2008-11-12 23:14:57 +00:00
|
|
|
"sha256hash",
|
2008-11-25 00:38:16 +00:00
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
2008-11-05 06:23:41 +00:00
|
|
|
);
|
2008-11-09 00:48:36 +00:00
|
|
|
__PACKAGE__->set_primary_key("id");
|
2008-11-25 11:01:42 +00:00
|
|
|
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" });
|
|
|
|
__PACKAGE__->belongs_to("dependency", "Hydra::Schema::Builds", { id => "dependency" });
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-05-09 16:10:50 +00:00
|
|
|
use Hydra::Helper::Nix;
|
|
|
|
|
|
|
|
if (getHydraDBPath =~ m/^dbi:Pg/) {
|
2009-05-07 13:30:55 +00:00
|
|
|
__PACKAGE__->sequence('builds_id_seq');
|
|
|
|
}
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-03-13 14:49:25 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-03-13 13:33:20
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uxfS8+GnU06sbx6nvWzTSQ
|
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;
|