generated schema with new dbix class schema loader, grrrrrr

This commit is contained in:
Rob Vermaas 2010-02-25 09:50:04 +00:00
parent 87ea0cb2b9
commit 4dccd3c620
23 changed files with 2043 additions and 301 deletions

View file

@ -6,10 +6,101 @@ package Hydra::Schema::BuildInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::BuildInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("BuildInputs");
=head1 ACCESSORS
=head2 id
data_type: integer
default_value: undef
is_auto_increment: 1
is_nullable: 0
size: undef
=head2 build
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 1
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 type
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 uri
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 revision
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 tag
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 value
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 dependency
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 1
size: undef
=head2 path
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"id",
{
@ -93,12 +184,32 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
=head1 RELATIONS
=head2 build
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to(
"build",
"Hydra::Schema::Builds",
{ id => "build" },
{ join_type => "LEFT" },
);
=head2 dependency
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to(
"dependency",
"Hydra::Schema::Builds",
@ -107,8 +218,8 @@ __PACKAGE__->belongs_to(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:skn8HFEXTvEiL4/6Q+ulvw
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:48U7D8+iCPaPc42KJCoQGg
use Hydra::Helper::Nix;

View file

@ -6,10 +6,99 @@ package Hydra::Schema::BuildProducts;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::BuildProducts
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("BuildProducts");
=head1 ACCESSORS
=head2 build
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 productnr
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 type
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 subtype
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 filesize
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 sha1hash
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 path
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 defaultpath
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"build",
{
@ -91,12 +180,22 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("build", "productnr");
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" });
=head1 RELATIONS
=head2 build
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6wJ0KJAILATio3ELRefU5Q
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5XWD8BZb3WeSJwKirHGhWA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,99 @@ package Hydra::Schema::BuildResultInfo;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::BuildResultInfo
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("BuildResultInfo");
=head1 ACCESSORS
=head2 id
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 iscachedbuild
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 buildstatus
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 errormsg
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 starttime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 stoptime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 logfile
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 releasename
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 keep
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=head2 faileddepbuild
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 faileddepstepnr
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"id",
{
@ -86,11 +175,22 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" });
=head1 RELATIONS
=head2 id
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {});
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K+kKzTgAlKSXevJWtLIwGA
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vg+v2gK8l7iqBqQGtZJ1cA
__PACKAGE__->belongs_to(
"failedDep",

View file

@ -6,10 +6,71 @@ package Hydra::Schema::BuildSchedulingInfo;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::BuildSchedulingInfo
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("BuildSchedulingInfo");
=head1 ACCESSORS
=head2 id
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 priority
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=head2 busy
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=head2 locker
data_type: text
default_value: (empty string)
is_nullable: 0
size: undef
=head2 logfile
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 disabled
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=head2 starttime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"id",
{
@ -24,7 +85,7 @@ __PACKAGE__->add_columns(
"busy",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
"locker",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef },
{ data_type => "text", default_value => "", is_nullable => 0, size => undef },
"logfile",
{
data_type => "text",
@ -43,12 +104,22 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" });
=head1 RELATIONS
=head2 id
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {});
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eiaLNgxvTjSZGC4pMDtNWA
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yEhHeANRynKf72dp5URvZA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,99 @@ package Hydra::Schema::BuildSteps;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::BuildSteps
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("BuildSteps");
=head1 ACCESSORS
=head2 build
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 stepnr
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 type
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 drvpath
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 outpath
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 logfile
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 busy
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 status
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 errormsg
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 starttime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 stoptime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"build",
{
@ -91,10 +180,21 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("build", "stepnr");
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" });
=head1 RELATIONS
=head2 build
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5iUdHsNyEoM3D7i+tSteBQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:233eydU0CA3zcJpwDrtwwA
1;

View file

@ -6,10 +6,151 @@ package Hydra::Schema::Builds;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Builds
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Builds");
=head1 ACCESSORS
=head2 id
data_type: integer
default_value: undef
is_auto_increment: 1
is_nullable: 0
size: undef
=head2 finished
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 jobset
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 job
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 nixname
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 drvpath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 outpath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 system
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 longdescription
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 license
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 homepage
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 maintainers
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 iscurrent
data_type: integer
default_value: 0
is_nullable: 1
size: undef
=head2 nixexprinput
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 nixexprpath
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"id",
{
@ -138,47 +279,141 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 jobset
Type: belongs_to
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->belongs_to(
"jobset",
"Hydra::Schema::Jobsets",
{ name => "jobset", project => "project" },
{},
);
=head2 job
Type: belongs_to
Related object: L<Hydra::Schema::Jobs>
=cut
__PACKAGE__->belongs_to(
"job",
"Hydra::Schema::Jobs",
{ jobset => "jobset", name => "job", project => "project" },
{},
);
=head2 buildschedulinginfo
Type: might_have
Related object: L<Hydra::Schema::BuildSchedulingInfo>
=cut
__PACKAGE__->might_have(
"buildschedulinginfo",
"Hydra::Schema::BuildSchedulingInfo",
{ "foreign.id" => "self.id" },
);
=head2 buildresultinfo
Type: might_have
Related object: L<Hydra::Schema::BuildResultInfo>
=cut
__PACKAGE__->might_have(
"buildresultinfo",
"Hydra::Schema::BuildResultInfo",
{ "foreign.id" => "self.id" },
);
=head2 buildsteps
Type: has_many
Related object: L<Hydra::Schema::BuildSteps>
=cut
__PACKAGE__->has_many(
"buildsteps",
"Hydra::Schema::BuildSteps",
{ "foreign.build" => "self.id" },
);
=head2 buildinputs_builds
Type: has_many
Related object: L<Hydra::Schema::BuildInputs>
=cut
__PACKAGE__->has_many(
"buildinputs_builds",
"Hydra::Schema::BuildInputs",
{ "foreign.build" => "self.id" },
);
=head2 buildinputs_dependencies
Type: has_many
Related object: L<Hydra::Schema::BuildInputs>
=cut
__PACKAGE__->has_many(
"buildinputs_dependencies",
"Hydra::Schema::BuildInputs",
{ "foreign.dependency" => "self.id" },
);
=head2 buildproducts
Type: has_many
Related object: L<Hydra::Schema::BuildProducts>
=cut
__PACKAGE__->has_many(
"buildproducts",
"Hydra::Schema::BuildProducts",
{ "foreign.build" => "self.id" },
);
=head2 releasemembers
Type: has_many
Related object: L<Hydra::Schema::ReleaseMembers>
=cut
__PACKAGE__->has_many(
"releasemembers",
"Hydra::Schema::ReleaseMembers",
@ -186,8 +421,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Un0iCqVS8PTpSdJiTjRXeA
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dsXIx+mh+etSD7zKQJ6I3A
use Hydra::Helper::Nix;
@ -217,14 +452,6 @@ __PACKAGE__->belongs_to(
{ id => "id" },
);
__PACKAGE__->has_one(
"actualBuildStep",
"Hydra::Schema::BuildSteps",
{ 'foreign.outpath' => 'self.outpath'
, 'foreign.build' => 'self.id'
},
);
sub addSequence {
my $hydradbi = getHydraDBPath;
if ($hydradbi =~ m/^dbi:Pg/) {
@ -271,38 +498,30 @@ QUERY
x.nixExprPath,
b.id as statusChangeId, b.timestamp as statusChangeTime
from
(select
(select max(id) from builds b
where
project = activeJobs.project and jobset = activeJobs.jobset
and job = activeJobs.job and system = activeJobs.system
and finished = 1
) as id
(select project, jobset, job, system, max(id) as id
from $activeJobs as activeJobs
) as latest
join Builds x using (id)
natural join Builds
where finished = 1
group by project, jobset, job, system)
as latest
natural join Builds x
$joinWithStatusChange
QUERY
);
makeSource("ActiveJobs$name", "(select distinct project, jobset, job from Builds where isCurrent = 1 $constraint)");
makeSource(
"LatestSucceeded$name",
<<QUERY
select *
from
(select
(select max(id) from builds b
where
project = activeJobs.project and jobset = activeJobs.jobset
and job = activeJobs.job and system = activeJobs.system
and finished = 1
and exists (select 1 from buildresultinfo where id = b.id and buildstatus = 0)
) as id
(select project, jobset, job, system, max(id) as id
from $activeJobs as activeJobs
natural join Builds
natural join BuildResultInfo
where finished = 1 and buildStatus = 0
group by project, jobset, job, system
) as latest
join Builds using (id)
natural join Builds
QUERY
);
}
@ -314,5 +533,4 @@ makeQueries('ForProject', "and project = ?");
makeQueries('ForJobset', "and project = ? and jobset = ?");
makeQueries('ForJob', "and project = ? and jobset = ? and job = ?");
1;

View file

@ -6,10 +6,63 @@ package Hydra::Schema::CachedCVSInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::CachedCVSInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("CachedCVSInputs");
=head1 ACCESSORS
=head2 uri
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 module
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 lastseen
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 storepath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"uri",
{
@ -57,9 +110,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("uri", "module", "sha256hash");
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:21:46
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fl40IZe2SZxPEQ5UgccVSQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XfIRW2I//m0W9D6jCmYJGA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,70 @@ package Hydra::Schema::CachedGitInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::CachedGitInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("CachedGitInputs");
=head1 ACCESSORS
=head2 uri
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 branch
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 revision
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 lastseen
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 storepath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"uri",
{
@ -64,9 +124,7 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("uri", "branch", "revision");
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-18 21:46:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K9P4pi33P54ZB8D/6WzAYw
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CoeyzZHUEPo7/VpIpLD+Pw
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,56 @@ package Hydra::Schema::CachedPathInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::CachedPathInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("CachedPathInputs");
=head1 ACCESSORS
=head2 srcpath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 lastseen
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 storepath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"srcpath",
{
@ -50,9 +96,7 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("srcpath", "sha256hash");
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZEYeoP+fkE3y/cohKLoCLg
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kZP1P7P2TMUCnnFPIGh1iA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,49 @@ package Hydra::Schema::CachedSubversionInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::CachedSubversionInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("CachedSubversionInputs");
=head1 ACCESSORS
=head2 uri
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 revision
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 sha256hash
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 storepath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"uri",
{
@ -43,9 +82,7 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("uri", "revision");
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f3ZEnsrXJUjcpGkLNl24Rw
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X5cnk1/P6U0SzCCQr72rBg
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,79 @@ package Hydra::Schema::Jobs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Jobs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Jobs");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 jobset
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 active
data_type: integer
default_value: 1
is_nullable: 0
size: undef
=head2 errormsg
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 firstevaltime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 lastevaltime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 disabled
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -61,12 +130,42 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("project", "jobset", "name");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 jobset
Type: belongs_to
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->belongs_to(
"jobset",
"Hydra::Schema::Jobsets",
{ name => "jobset", project => "project" },
{},
);
=head2 builds
Type: has_many
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
@ -78,9 +177,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I5DYg9q22g99Mstln/26fw
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MA9QPD0BcewmJazzmSu1MA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,73 @@ package Hydra::Schema::JobsetInputAlts;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::JobsetInputAlts
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("JobsetInputAlts");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 jobset
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 input
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 altnr
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 value
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 revision
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 tag
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -65,16 +128,26 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "jobset", "input", "altnr");
=head1 RELATIONS
=head2 jobsetinput
Type: belongs_to
Related object: L<Hydra::Schema::JobsetInputs>
=cut
__PACKAGE__->belongs_to(
"jobsetinput",
"Hydra::Schema::JobsetInputs",
{ jobset => "jobset", name => "input", project => "project" },
{},
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B2BMIuiQ3IAoqEJ18pHCeQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l75rIU6dDqdHBkPIaC+84w
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,51 @@ package Hydra::Schema::JobsetInputHashes;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::JobsetInputHashes
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("JobsetInputHashes");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 jobset
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 hash
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -43,17 +84,36 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "jobset", "hash");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 jobset
Type: belongs_to
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->belongs_to(
"jobset",
"Hydra::Schema::Jobsets",
{ name => "jobset", project => "project" },
{},
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 14:04:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f8/4vTSQJbmAh/0PZHeFDg
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dK9vFHXInejDW/rl1i/kFA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,51 @@ package Hydra::Schema::JobsetInputs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::JobsetInputs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("JobsetInputs");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 jobset
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 type
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -43,6 +84,17 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "jobset", "name");
=head1 RELATIONS
=head2 jobsets
Type: has_many
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->has_many(
"jobsets",
"Hydra::Schema::Jobsets",
@ -52,11 +104,30 @@ __PACKAGE__->has_many(
"foreign.project" => "self.project",
},
);
=head2 jobset
Type: belongs_to
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->belongs_to(
"jobset",
"Hydra::Schema::Jobsets",
{ name => "jobset", project => "project" },
{},
);
=head2 jobsetinputalts
Type: has_many
Related object: L<Hydra::Schema::JobsetInputAlts>
=cut
__PACKAGE__->has_many(
"jobsetinputalts",
"Hydra::Schema::JobsetInputAlts",
@ -68,9 +139,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:srhHJGx+LAdeo++jv1RmMg
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eThDu6WyuCUmDMEDlXyPkA
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,101 @@ package Hydra::Schema::Jobsets;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Jobsets
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Jobsets");
=head1 ACCESSORS
=head2 name
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 nixexprinput
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 nixexprpath
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 errormsg
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 errortime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 lastcheckedtime
data_type: integer
default_value: undef
is_nullable: 1
size: undef
=head2 enabled
data_type: integer
default_value: 1
is_nullable: 0
size: undef
=head2 enableemail
data_type: integer
default_value: 1
is_nullable: 0
size: undef
=head2 emailoverride
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"name",
{
@ -83,12 +174,42 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "name");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=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" },
{},
);
=head2 jobsetinputs
Type: has_many
Related object: L<Hydra::Schema::JobsetInputs>
=cut
__PACKAGE__->has_many(
"jobsetinputs",
"Hydra::Schema::JobsetInputs",
@ -97,6 +218,15 @@ __PACKAGE__->has_many(
"foreign.project" => "self.project",
},
);
=head2 jobs
Type: has_many
Related object: L<Hydra::Schema::Jobs>
=cut
__PACKAGE__->has_many(
"jobs",
"Hydra::Schema::Jobs",
@ -105,6 +235,15 @@ __PACKAGE__->has_many(
"foreign.project" => "self.project",
},
);
=head2 builds
Type: has_many
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
@ -113,6 +252,15 @@ __PACKAGE__->has_many(
"foreign.project" => "self.project",
},
);
=head2 jobsetinputhashes
Type: has_many
Related object: L<Hydra::Schema::JobsetInputHashes>
=cut
__PACKAGE__->has_many(
"jobsetinputhashes",
"Hydra::Schema::JobsetInputHashes",
@ -123,139 +271,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2010-01-06 10:15:26
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:buO0P7XQexj6YEwEAsq3EQ
# These lines were loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Jobsets.pm' found in @INC.
# They are now part of the custom portion of this file
# for you to hand-edit. If you do not either delete
# this section or remove that file from @INC, this section
# will be repeated redundantly when you re-create this
# file again via Loader!
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ORCZ73BJrscvmyf/4ds0UQ
package Hydra::Schema::Jobsets;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
use strict;
use warnings;
use base 'DBIx::Class';
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Jobsets");
__PACKAGE__->add_columns(
"name",
{
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"project",
{
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"description",
{
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"nixexprinput",
{
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"nixexprpath",
{
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"errormsg",
{
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"errortime",
{
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"lastcheckedtime",
{
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"enabled",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("project", "name");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
__PACKAGE__->belongs_to(
"jobsetinput",
"Hydra::Schema::JobsetInputs",
{ jobset => "name", name => "nixexprinput", project => "project" },
);
__PACKAGE__->has_many(
"jobsetinputs",
"Hydra::Schema::JobsetInputs",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
__PACKAGE__->has_many(
"jobs",
"Hydra::Schema::Jobs",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
__PACKAGE__->has_many(
"jobsetinputhashes",
"Hydra::Schema::JobsetInputHashes",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:05:10
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fVXvhb343Zw1625daVz40g
# You can replace this text with custom content, and it will be preserved on regeneration
1;
# End of lines loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Jobsets.pm'
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,64 @@ package Hydra::Schema::Projects;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Projects
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Projects");
=head1 ACCESSORS
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 displayname
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 enabled
data_type: integer
default_value: 1
is_nullable: 0
size: undef
=head2 owner
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 homepage
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"name",
{
@ -51,42 +105,125 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("name");
__PACKAGE__->belongs_to("owner", "Hydra::Schema::Users", { username => "owner" });
=head1 RELATIONS
=head2 owner
Type: belongs_to
Related object: L<Hydra::Schema::Users>
=cut
__PACKAGE__->belongs_to("owner", "Hydra::Schema::Users", { username => "owner" }, {});
=head2 jobsets
Type: has_many
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->has_many(
"jobsets",
"Hydra::Schema::Jobsets",
{ "foreign.project" => "self.name" },
);
=head2 jobs
Type: has_many
Related object: L<Hydra::Schema::Jobs>
=cut
__PACKAGE__->has_many(
"jobs",
"Hydra::Schema::Jobs",
{ "foreign.project" => "self.name" },
);
=head2 builds
Type: has_many
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
{ "foreign.project" => "self.name" },
);
=head2 views
Type: has_many
Related object: L<Hydra::Schema::Views>
=cut
__PACKAGE__->has_many(
"views",
"Hydra::Schema::Views",
{ "foreign.project" => "self.name" },
);
=head2 viewjobs
Type: has_many
Related object: L<Hydra::Schema::ViewJobs>
=cut
__PACKAGE__->has_many(
"viewjobs",
"Hydra::Schema::ViewJobs",
{ "foreign.project" => "self.name" },
);
=head2 releases
Type: has_many
Related object: L<Hydra::Schema::Releases>
=cut
__PACKAGE__->has_many(
"releases",
"Hydra::Schema::Releases",
{ "foreign.project" => "self.name" },
);
=head2 releasemembers
Type: has_many
Related object: L<Hydra::Schema::ReleaseMembers>
=cut
__PACKAGE__->has_many(
"releasemembers",
"Hydra::Schema::ReleaseMembers",
{ "foreign.project" => "self.name" },
);
=head2 jobsetinputhashes
Type: has_many
Related object: L<Hydra::Schema::JobsetInputHashes>
=cut
__PACKAGE__->has_many(
"jobsetinputhashes",
"Hydra::Schema::JobsetInputHashes",
@ -94,8 +231,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:05:10
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+HDJ8tIPcvj5+IwgHqTnaw
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yH/9hz6FH09kgusRNWrqPg
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,52 @@ package Hydra::Schema::ReleaseMembers;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::ReleaseMembers
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("ReleaseMembers");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 release_
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 build
data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -44,18 +86,46 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "release_", "build");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 release
Type: belongs_to
Related object: L<Hydra::Schema::Releases>
=cut
__PACKAGE__->belongs_to(
"release",
"Hydra::Schema::Releases",
{ name => "release_", project => "project" },
{},
);
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" });
=head2 build
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fu21YcmM1U76pcgFY1qZ5A
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QTByw0fKIXFIYYSXCtKyyw
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,50 @@ package Hydra::Schema::Releases;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Releases
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Releases");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 timestamp
data_type: integer
default_value: undef
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -42,7 +82,27 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("project", "name");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 releasemembers
Type: has_many
Related object: L<Hydra::Schema::ReleaseMembers>
=cut
__PACKAGE__->has_many(
"releasemembers",
"Hydra::Schema::ReleaseMembers",
@ -53,9 +113,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cbt+hnRoIN5T6u8qC9uQBg
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tUuuHG9duLzmDhUywM+ErQ
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,35 @@ package Hydra::Schema::SystemTypes;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::SystemTypes
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("SystemTypes");
=head1 ACCESSORS
=head2 system
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 maxconcurrent
data_type: integer
default_value: 2
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"system",
{
@ -24,9 +49,7 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("system");
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QtiooD8Th7dBKknK5IRhMQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cY3UlAd8a/jARP5klFLP6g
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,36 @@ package Hydra::Schema::UserRoles;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::UserRoles
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("UserRoles");
=head1 ACCESSORS
=head2 username
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 role
data_type: text
default_value: undef
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"username",
{
@ -28,12 +54,26 @@ __PACKAGE__->add_columns(
},
);
__PACKAGE__->set_primary_key("username", "role");
__PACKAGE__->belongs_to("username", "Hydra::Schema::Users", { username => "username" });
=head1 RELATIONS
=head2 username
Type: belongs_to
Related object: L<Hydra::Schema::Users>
=cut
__PACKAGE__->belongs_to(
"username",
"Hydra::Schema::Users",
{ username => "username" },
{},
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9oO99uYxlWqY3GxfUWjNzg
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qEshVHXf4YQ0SEVeZ9cVLQ
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,56 @@ package Hydra::Schema::Users;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Users
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Users");
=head1 ACCESSORS
=head2 username
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 fullname
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 emailaddress
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 password
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 emailonerror
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"username",
{
@ -43,11 +89,31 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("username");
=head1 RELATIONS
=head2 userroles
Type: has_many
Related object: L<Hydra::Schema::UserRoles>
=cut
__PACKAGE__->has_many(
"userroles",
"Hydra::Schema::UserRoles",
{ "foreign.username" => "self.username" },
);
=head2 projects
Type: has_many
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->has_many(
"projects",
"Hydra::Schema::Projects",
@ -55,9 +121,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-12-18 12:57:04
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/AWZnceSVTAlb5Tru9T1+g
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vHluB+s1FkpJBPWmpv+wUQ
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,79 @@ package Hydra::Schema::ViewJobs;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::ViewJobs
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("ViewJobs");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 view_
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 job
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 attrs
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 isprimary
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 jobset
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 autorelease
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -61,17 +130,36 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("project", "view_", "job", "attrs");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 view
Type: belongs_to
Related object: L<Hydra::Schema::Views>
=cut
__PACKAGE__->belongs_to(
"view",
"Hydra::Schema::Views",
{ name => "view_", project => "project" },
{},
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RX9tEuV8mEg13dxEe9SJrQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+aFIv2sSlgMWKcQuWnq0fg
# You can replace this text with custom content, and it will be preserved on regeneration
1;

View file

@ -6,10 +6,50 @@ package Hydra::Schema::Views;
use strict;
use warnings;
use base 'DBIx::Class';
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::Views
=cut
__PACKAGE__->load_components("Core");
__PACKAGE__->table("Views");
=head1 ACCESSORS
=head2 project
data_type: text
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: undef
=head2 name
data_type: text
default_value: undef
is_nullable: 0
size: undef
=head2 description
data_type: text
default_value: undef
is_nullable: 1
size: undef
=head2 keep
data_type: integer
default_value: 0
is_nullable: 0
size: undef
=cut
__PACKAGE__->add_columns(
"project",
{
@ -37,7 +77,27 @@ __PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("project", "name");
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" });
=head1 RELATIONS
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
=head2 viewjobs
Type: has_many
Related object: L<Hydra::Schema::ViewJobs>
=cut
__PACKAGE__->has_many(
"viewjobs",
"Hydra::Schema::ViewJobs",
@ -45,9 +105,7 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BnM3PKkdJXAaT4rPR8gJsQ
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ziocg+WjpiRs3lmlPJL4YA
# You can replace this text with custom content, and it will be preserved on regeneration
1;