55 lines
1.6 KiB
Perl
55 lines
1.6 KiB
Perl
package Hydra::Schema::BuildInputs;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class';
|
|
|
|
__PACKAGE__->load_components("Core");
|
|
__PACKAGE__->table("BuildInputs");
|
|
__PACKAGE__->add_columns(
|
|
"id",
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
"build",
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
"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 },
|
|
"value",
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
"dependency",
|
|
{ data_type => "integer", is_nullable => 0, size => undef },
|
|
"path",
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
"sha256hash",
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
);
|
|
__PACKAGE__->set_primary_key("id");
|
|
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" });
|
|
__PACKAGE__->belongs_to("dependency", "Hydra::Schema::Builds", { id => "dependency" });
|
|
|
|
use Hydra::Helper::Nix;
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-03-13 13:33:20
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uxfS8+GnU06sbx6nvWzTSQ
|
|
|
|
sub addSequence {
|
|
my $hydradbi = getHydraDBPath ;
|
|
if ($hydradbi =~ m/^dbi:Pg/) {
|
|
__PACKAGE__->sequence('builds_id_seq');
|
|
}
|
|
}
|
|
|
|
addSequence ;
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
1;
|