Keep track of the database schema version

The singleton table SchemaVersion contains the current version
of the Hydra database schema.  This can be used to upgrade the
schema on the fly.

Also reran the DBIx::Class schema loader.
This commit is contained in:
Eelco Dolstra 2011-12-05 14:29:29 +01:00
parent 3b9a62c964
commit 9032c55aa6
35 changed files with 1551 additions and 2187 deletions

View file

@ -1,3 +1,4 @@
use utf8;
package Hydra::Schema; package Hydra::Schema;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
@ -11,8 +12,8 @@ use base 'DBIx::Class::Schema';
__PACKAGE__->load_classes; __PACKAGE__->load_classes;
# Created by DBIx::Class::Schema::Loader v0.04999_09 @ 2009-11-17 16:04:13 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:08:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y97NEH6tnsRjsy0/nVgMjQ # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BpPjKT5Pb1RYMHo+oKdZ+w
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildInputs; package Hydra::Schema::BuildInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildInputs>
=head1 NAME
Hydra::Schema::BuildInputs
=cut =cut
@ -21,168 +25,99 @@ __PACKAGE__->table("BuildInputs");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef
is_auto_increment: 1 is_auto_increment: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 build =head2 build
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 1 is_nullable: 1
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 type =head2 type
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 revision =head2 revision
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 tag =head2 tag
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 value =head2 value
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 dependency =head2 dependency
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 1 is_nullable: 1
size: undef
=head2 path =head2 path
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"id", "id",
{ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_auto_increment => 1,
is_nullable => 0,
size => undef,
},
"build", "build",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 1,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"type", "type",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"uri", "uri",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"revision", "revision",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"tag", "tag",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"value", "value",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"dependency", "dependency",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 1,
size => undef,
},
"path", "path",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 RELATIONS
@ -218,8 +153,8 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:48U7D8+iCPaPc42KJCoQGg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yaqa9gcGx9Z+Nfr3xgX28g
use Hydra::Helper::Nix; use Hydra::Helper::Nix;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildMachineSystemTypes; package Hydra::Schema::BuildMachineSystemTypes;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildMachineSystemTypes
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildMachineSystemTypes>
=head1 NAME
Hydra::Schema::BuildMachineSystemTypes
=cut =cut
@ -21,38 +25,36 @@ __PACKAGE__->table("BuildMachineSystemTypes");
=head2 hostname =head2 hostname
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 system =head2 system
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"hostname", "hostname",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"system", "system",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</hostname>
=item * L</system>
=back
=cut
__PACKAGE__->set_primary_key("hostname", "system"); __PACKAGE__->set_primary_key("hostname", "system");
=head1 RELATIONS =head1 RELATIONS
@ -73,8 +75,8 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-10-08 13:47:26 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/voQZLNESTotUOWRbg4WA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CpwMC8YMFC4B7gzGBdzh0A
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildMachines; package Hydra::Schema::BuildMachines;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildMachines
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildMachines>
=head1 NAME
Hydra::Schema::BuildMachines
=cut =cut
@ -21,76 +25,74 @@ __PACKAGE__->table("BuildMachines");
=head2 hostname =head2 hostname
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 username =head2 username
data_type: text data_type: 'text'
default_value: '' default_value: (empty string)
is_nullable: 0 is_nullable: 0
size: undef
=head2 ssh_key =head2 ssh_key
data_type: text data_type: 'text'
default_value: '' default_value: (empty string)
is_nullable: 0 is_nullable: 0
size: undef
=head2 options =head2 options
data_type: text data_type: 'text'
default_value: '' default_value: (empty string)
is_nullable: 0 is_nullable: 0
size: undef
=head2 maxconcurrent =head2 maxconcurrent
data_type: integer data_type: 'integer'
default_value: 2 default_value: 2
is_nullable: 0 is_nullable: 0
size: undef
=head2 speedfactor =head2 speedfactor
data_type: integer data_type: 'integer'
default_value: 1 default_value: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 enabled =head2 enabled
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"hostname", "hostname",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"username", "username",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef }, { data_type => "text", default_value => "", is_nullable => 0 },
"ssh_key", "ssh_key",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef }, { data_type => "text", default_value => "", is_nullable => 0 },
"options", "options",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef }, { data_type => "text", default_value => "", is_nullable => 0 },
"maxconcurrent", "maxconcurrent",
{ data_type => "integer", default_value => 2, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 2, is_nullable => 0 },
"speedfactor", "speedfactor",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 1, is_nullable => 0 },
"enabled", "enabled",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</hostname>
=back
=cut
__PACKAGE__->set_primary_key("hostname"); __PACKAGE__->set_primary_key("hostname");
=head1 RELATIONS =head1 RELATIONS
@ -107,11 +109,12 @@ __PACKAGE__->has_many(
"buildmachinesystemtypes", "buildmachinesystemtypes",
"Hydra::Schema::BuildMachineSystemTypes", "Hydra::Schema::BuildMachineSystemTypes",
{ "foreign.hostname" => "self.hostname" }, { "foreign.hostname" => "self.hostname" },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-11-11 10:58:44 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GV0LlwTyjFctix2zArVTGw # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wboDtUIBUkvEiUHpe09kkg
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildProducts; package Hydra::Schema::BuildProducts;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildProducts
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildProducts>
=head1 NAME
Hydra::Schema::BuildProducts
=cut =cut
@ -21,164 +25,99 @@ __PACKAGE__->table("BuildProducts");
=head2 build =head2 build
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 productnr =head2 productnr
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 type =head2 type
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 subtype =head2 subtype
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 filesize =head2 filesize
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 sha1hash =head2 sha1hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 path =head2 path
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 defaultpath =head2 defaultpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"build", "build",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"productnr", "productnr",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"type", "type",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"subtype", "subtype",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"filesize", "filesize",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"sha1hash", "sha1hash",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"path", "path",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"defaultpath", "defaultpath",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</build>
=item * L</productnr>
=back
=cut
__PACKAGE__->set_primary_key("build", "productnr"); __PACKAGE__->set_primary_key("build", "productnr");
=head1 RELATIONS =head1 RELATIONS
@ -194,8 +133,8 @@ Related object: L<Hydra::Schema::Builds>
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {}); __PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5XWD8BZb3WeSJwKirHGhWA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:suSgQkBLXzu0yD4YicRS1A
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildResultInfo; package Hydra::Schema::BuildResultInfo;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildResultInfo
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildResultInfo>
=head1 NAME
Hydra::Schema::BuildResultInfo
=cut =cut
@ -21,102 +25,79 @@ __PACKAGE__->table("BuildResultInfo");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef is_auto_increment: 1
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 iscachedbuild =head2 iscachedbuild
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 buildstatus =head2 buildstatus
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 errormsg =head2 errormsg
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 starttime =head2 starttime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 stoptime =head2 stoptime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 logfile =head2 logfile
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 logsize =head2 logsize
data_type: bigint data_type: 'bigint'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 size =head2 size
data_type: bigint data_type: 'bigint'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 closuresize =head2 closuresize
data_type: bigint data_type: 'bigint'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 releasename =head2 releasename
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 keep =head2 keep
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 faileddepbuild =head2 faileddepbuild
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 faileddepstepnr =head2 faileddepstepnr
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
@ -124,83 +105,48 @@ __PACKAGE__->add_columns(
"id", "id",
{ {
data_type => "integer", data_type => "integer",
default_value => undef, is_auto_increment => 1,
is_foreign_key => 1, is_foreign_key => 1,
is_nullable => 0, is_nullable => 0,
size => undef,
}, },
"iscachedbuild", "iscachedbuild",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"buildstatus", "buildstatus",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"errormsg", "errormsg",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"starttime", "starttime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"stoptime", "stoptime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"logfile", "logfile",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"logsize", "logsize",
{ data_type => "bigint", default_value => 0, is_nullable => 0, size => undef }, { data_type => "bigint", default_value => 0, is_nullable => 0 },
"size", "size",
{ data_type => "bigint", default_value => 0, is_nullable => 0, size => undef }, { data_type => "bigint", default_value => 0, is_nullable => 0 },
"closuresize", "closuresize",
{ data_type => "bigint", default_value => 0, is_nullable => 0, size => undef }, { data_type => "bigint", default_value => 0, is_nullable => 0 },
"releasename", "releasename",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"keep", "keep",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"faileddepbuild", "faileddepbuild",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"faileddepstepnr", "faileddepstepnr",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 RELATIONS
@ -216,8 +162,8 @@ Related object: L<Hydra::Schema::Builds>
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {}); __PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {});
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2011-02-09 11:17:50 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WutQSwDawsCKevXw5zXOLw # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hX3+iQYrGslQqY9vKvyw3g
__PACKAGE__->belongs_to( __PACKAGE__->belongs_to(
"failedDep", "failedDep",

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildSchedulingInfo; package Hydra::Schema::BuildSchedulingInfo;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildSchedulingInfo
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildSchedulingInfo>
=head1 NAME
Hydra::Schema::BuildSchedulingInfo
=cut =cut
@ -21,53 +25,44 @@ __PACKAGE__->table("BuildSchedulingInfo");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef is_auto_increment: 1
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 priority =head2 priority
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 busy =head2 busy
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 locker =head2 locker
data_type: text data_type: 'text'
default_value: '' default_value: (empty string)
is_nullable: 0 is_nullable: 0
size: undef
=head2 logfile =head2 logfile
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 disabled =head2 disabled
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 starttime =head2 starttime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
@ -75,34 +70,34 @@ __PACKAGE__->add_columns(
"id", "id",
{ {
data_type => "integer", data_type => "integer",
default_value => undef, is_auto_increment => 1,
is_foreign_key => 1, is_foreign_key => 1,
is_nullable => 0, is_nullable => 0,
size => undef,
}, },
"priority", "priority",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"busy", "busy",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"locker", "locker",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef }, { data_type => "text", default_value => "", is_nullable => 0 },
"logfile", "logfile",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"disabled", "disabled",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"starttime", "starttime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 RELATIONS
@ -118,8 +113,8 @@ Related object: L<Hydra::Schema::Builds>
__PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {}); __PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }, {});
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-03-05 13:07:46 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qOU/YGv3fgPynBXovV6gfg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uz7y9Ly+ADRrtrPfEk9lGA
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::BuildSteps; package Hydra::Schema::BuildSteps;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::BuildSteps
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<BuildSteps>
=head1 NAME
Hydra::Schema::BuildSteps
=cut =cut
@ -21,187 +25,114 @@ __PACKAGE__->table("BuildSteps");
=head2 build =head2 build
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 stepnr =head2 stepnr
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 type =head2 type
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 drvpath =head2 drvpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 outpath =head2 outpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 logfile =head2 logfile
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 busy =head2 busy
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 status =head2 status
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 errormsg =head2 errormsg
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 starttime =head2 starttime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 stoptime =head2 stoptime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 machine =head2 machine
data_type: text data_type: 'text'
default_value: '' default_value: (empty string)
is_nullable: 0 is_nullable: 0
size: undef
=head2 system =head2 system
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"build", "build",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"stepnr", "stepnr",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"type", "type",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"drvpath", "drvpath",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"outpath", "outpath",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"logfile", "logfile",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"busy", "busy",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"status", "status",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"errormsg", "errormsg",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"starttime", "starttime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"stoptime", "stoptime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"machine", "machine",
{ data_type => "text", default_value => "''", is_nullable => 0, size => undef }, { data_type => "text", default_value => "", is_nullable => 0 },
"system", "system",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</build>
=item * L</stepnr>
=back
=cut
__PACKAGE__->set_primary_key("build", "stepnr"); __PACKAGE__->set_primary_key("build", "stepnr");
=head1 RELATIONS =head1 RELATIONS
@ -217,8 +148,8 @@ Related object: L<Hydra::Schema::Builds>
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {}); __PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-08-31 17:19:01 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BU1na1One0SzUwilm7YmQQ # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5H+OkGT0zQEWkAjU+OlBdg
__PACKAGE__->belongs_to( __PACKAGE__->belongs_to(
"schedulingInfo", "schedulingInfo",

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Builds; package Hydra::Schema::Builds;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Builds
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Builds>
=head1 NAME
Hydra::Schema::Builds
=cut =cut
@ -21,317 +25,257 @@ __PACKAGE__->table("Builds");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef
is_auto_increment: 1 is_auto_increment: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 finished =head2 finished
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 timestamp =head2 timestamp
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 job =head2 job
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 nixname =head2 nixname
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 drvpath =head2 drvpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 outpath =head2 outpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 system =head2 system
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 longdescription =head2 longdescription
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 license =head2 license
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 homepage =head2 homepage
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 maintainers =head2 maintainers
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 maxsilent =head2 maxsilent
data_type: integer data_type: 'integer'
default_value: 3600 default_value: 3600
is_nullable: 1 is_nullable: 1
size: undef
=head2 timeout =head2 timeout
data_type: integer data_type: 'integer'
default_value: 36000 default_value: 36000
is_nullable: 1 is_nullable: 1
size: undef
=head2 iscurrent =head2 iscurrent
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 1 is_nullable: 1
size: undef
=head2 nixexprinput =head2 nixexprinput
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 nixexprpath =head2 nixexprpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"id", "id",
{ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_auto_increment => 1,
is_nullable => 0,
size => undef,
},
"finished", "finished",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"timestamp", "timestamp",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"job", "job",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"nixname", "nixname",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"drvpath", "drvpath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"outpath", "outpath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"system", "system",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"longdescription", "longdescription",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"license", "license",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"homepage", "homepage",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"maintainers", "maintainers",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"maxsilent", "maxsilent",
{ { data_type => "integer", default_value => 3600, is_nullable => 1 },
data_type => "integer",
default_value => 3600,
is_nullable => 1,
size => undef,
},
"timeout", "timeout",
{ { data_type => "integer", default_value => 36000, is_nullable => 1 },
data_type => "integer",
default_value => 36000,
is_nullable => 1,
size => undef,
},
"iscurrent", "iscurrent",
{ data_type => "integer", default_value => 0, is_nullable => 1, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 1 },
"nixexprinput", "nixexprinput",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"nixexprpath", "nixexprpath",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 RELATIONS
=head2 project =head2 buildinputs_builds
Type: belongs_to Type: has_many
Related object: L<Hydra::Schema::Projects> Related object: L<Hydra::Schema::BuildInputs>
=cut =cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {}); __PACKAGE__->has_many(
"buildinputs_builds",
"Hydra::Schema::BuildInputs",
{ "foreign.build" => "self.id" },
{},
);
=head2 jobset =head2 buildinputs_dependencies
Type: belongs_to Type: has_many
Related object: L<Hydra::Schema::Jobsets> Related object: L<Hydra::Schema::BuildInputs>
=cut =cut
__PACKAGE__->belongs_to( __PACKAGE__->has_many(
"jobset", "buildinputs_dependencies",
"Hydra::Schema::Jobsets", "Hydra::Schema::BuildInputs",
{ name => "jobset", project => "project" }, { "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 buildresultinfo
Type: might_have
Related object: L<Hydra::Schema::BuildResultInfo>
=cut
__PACKAGE__->might_have(
"buildresultinfo",
"Hydra::Schema::BuildResultInfo",
{ "foreign.id" => "self.id" },
{},
);
=head2 buildschedulinginfo
Type: might_have
Related object: L<Hydra::Schema::BuildSchedulingInfo>
=cut
__PACKAGE__->might_have(
"buildschedulinginfo",
"Hydra::Schema::BuildSchedulingInfo",
{ "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" },
{}, {},
); );
@ -350,102 +294,19 @@ __PACKAGE__->belongs_to(
{}, {},
); );
=head2 buildschedulinginfo =head2 jobset
Type: might_have Type: belongs_to
Related object: L<Hydra::Schema::BuildSchedulingInfo> Related object: L<Hydra::Schema::Jobsets>
=cut =cut
__PACKAGE__->might_have( __PACKAGE__->belongs_to(
"buildschedulinginfo", "jobset",
"Hydra::Schema::BuildSchedulingInfo", "Hydra::Schema::Jobsets",
{ "foreign.id" => "self.id" }, { name => "jobset", project => "project" },
); {},
=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",
{ "foreign.build" => "self.id" },
); );
=head2 jobsetevalmembers =head2 jobsetevalmembers
@ -460,11 +321,37 @@ __PACKAGE__->has_many(
"jobsetevalmembers", "jobsetevalmembers",
"Hydra::Schema::JobsetEvalMembers", "Hydra::Schema::JobsetEvalMembers",
{ "foreign.build" => "self.id" }, { "foreign.build" => "self.id" },
{},
);
=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",
{ "foreign.build" => "self.id" },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-05-26 09:25:50 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OApfteImw84nYhUvSUB4FA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RRtBPTdD946kA5133+c4kw
use Hydra::Helper::Nix; use Hydra::Helper::Nix;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedBazaarInputs; package Hydra::Schema::CachedBazaarInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedBazaarInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedBazaarInputs>
=head1 NAME
Hydra::Schema::CachedBazaarInputs
=cut =cut
@ -21,69 +25,54 @@ __PACKAGE__->table("CachedBazaarInputs");
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 revision =head2 revision
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"revision", "revision",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</uri>
=item * L</revision>
=back
=cut
__PACKAGE__->set_primary_key("uri", "revision"); __PACKAGE__->set_primary_key("uri", "revision");
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2011-02-09 11:17:32 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m7+K0wiCgGDnJVlC13SG5w # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ONhBo6Xhq7uwYFdEzbp3dg
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedCVSInputs; package Hydra::Schema::CachedCVSInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedCVSInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedCVSInputs>
=head1 NAME
Hydra::Schema::CachedCVSInputs
=cut =cut
@ -21,97 +25,70 @@ __PACKAGE__->table("CachedCVSInputs");
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 module =head2 module
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 timestamp =head2 timestamp
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 lastseen =head2 lastseen
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"module", "module",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"timestamp", "timestamp",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"lastseen", "lastseen",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</uri>
=item * L</module>
=item * L</sha256hash>
=back
=cut
__PACKAGE__->set_primary_key("uri", "module", "sha256hash"); __PACKAGE__->set_primary_key("uri", "module", "sha256hash");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XfIRW2I//m0W9D6jCmYJGA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IcSVN/tlfQQtX88Ix+aKnw
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedGitInputs; package Hydra::Schema::CachedGitInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedGitInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedGitInputs>
=head1 NAME
Hydra::Schema::CachedGitInputs
=cut =cut
@ -21,82 +25,62 @@ __PACKAGE__->table("CachedGitInputs");
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 branch =head2 branch
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 revision =head2 revision
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"branch", "branch",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"revision", "revision",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</uri>
=item * L</branch>
=item * L</revision>
=back
=cut
__PACKAGE__->set_primary_key("uri", "branch", "revision"); __PACKAGE__->set_primary_key("uri", "branch", "revision");
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-08-10 08:24:15 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4eYbLtiy5X3yegndBRFtSg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fx3yosWMmJ+MnvL/dSWtFA
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedHgInputs; package Hydra::Schema::CachedHgInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedHgInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedHgInputs>
=head1 NAME
Hydra::Schema::CachedHgInputs
=cut =cut
@ -21,83 +25,63 @@ __PACKAGE__->table("CachedHgInputs");
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 branch =head2 branch
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 revision =head2 revision
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"branch", "branch",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"revision", "revision",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</uri>
=item * L</branch>
=item * L</revision>
=back
=cut
__PACKAGE__->set_primary_key("uri", "branch", "revision"); __PACKAGE__->set_primary_key("uri", "branch", "revision");
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-07-27 18:22:46 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5gzMs6Nys1tVwoa00j9CjQ # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xFLnuCBAcJCg+N3b4aajZQ
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedPathInputs; package Hydra::Schema::CachedPathInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedPathInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedPathInputs>
=head1 NAME
Hydra::Schema::CachedPathInputs
=cut =cut
@ -21,82 +25,60 @@ __PACKAGE__->table("CachedPathInputs");
=head2 srcpath =head2 srcpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 timestamp =head2 timestamp
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 lastseen =head2 lastseen
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"srcpath", "srcpath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"timestamp", "timestamp",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"lastseen", "lastseen",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</srcpath>
=item * L</sha256hash>
=back
=cut
__PACKAGE__->set_primary_key("srcpath", "sha256hash"); __PACKAGE__->set_primary_key("srcpath", "sha256hash");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kZP1P7P2TMUCnnFPIGh1iA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4KzXhMnUldVgNuuNXWIYjw
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedSubversionInputs; package Hydra::Schema::CachedSubversionInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedSubversionInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<CachedSubversionInputs>
=head1 NAME
Hydra::Schema::CachedSubversionInputs
=cut =cut
@ -21,68 +25,53 @@ __PACKAGE__->table("CachedSubversionInputs");
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 revision =head2 revision
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 sha256hash =head2 sha256hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 storepath =head2 storepath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"revision", "revision",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"sha256hash", "sha256hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"storepath", "storepath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</uri>
=item * L</revision>
=back
=cut
__PACKAGE__->set_primary_key("uri", "revision"); __PACKAGE__->set_primary_key("uri", "revision");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X5cnk1/P6U0SzCCQr72rBg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1rjwWtZXGEowHqhfjLqjmA
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Jobs; package Hydra::Schema::Jobs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Jobs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Jobs>
=head1 NAME
Hydra::Schema::Jobs
=cut =cut
@ -21,143 +25,87 @@ __PACKAGE__->table("Jobs");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 active =head2 active
data_type: integer data_type: 'integer'
default_value: 1 default_value: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 errormsg =head2 errormsg
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 firstevaltime =head2 firstevaltime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 lastevaltime =head2 lastevaltime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 disabled =head2 disabled
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"active", "active",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 1, is_nullable => 0 },
"errormsg", "errormsg",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"firstevaltime", "firstevaltime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"lastevaltime", "lastevaltime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"disabled", "disabled",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</jobset>
=item * L</name>
=back
=cut
__PACKAGE__->set_primary_key("project", "jobset", "name"); __PACKAGE__->set_primary_key("project", "jobset", "name");
=head1 RELATIONS =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 =head2 builds
Type: has_many Type: has_many
@ -174,10 +122,36 @@ __PACKAGE__->has_many(
"foreign.jobset" => "self.jobset", "foreign.jobset" => "self.jobset",
"foreign.project" => "self.project", "foreign.project" => "self.project",
}, },
{},
); );
=head2 jobset
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 Type: belongs_to
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MA9QPD0BcewmJazzmSu1MA
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->belongs_to(
"jobset",
"Hydra::Schema::Jobsets",
{ name => "jobset", project => "project" },
{},
);
=head2 project
Type: belongs_to
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZyDc4SrY9RfmsLK6VOqHhw
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::JobsetEvalMembers; package Hydra::Schema::JobsetEvalMembers;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::JobsetEvalMembers
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<JobsetEvalMembers>
=head1 NAME
Hydra::Schema::JobsetEvalMembers
=cut =cut
@ -21,67 +25,47 @@ __PACKAGE__->table("JobsetEvalMembers");
=head2 eval =head2 eval
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 build =head2 build
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 isnew =head2 isnew
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"eval", "eval",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"build", "build",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"isnew", "isnew",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
__PACKAGE__->set_primary_key("eval", "build");
=head1 RELATIONS =head1 PRIMARY KEY
=head2 eval =over 4
Type: belongs_to =item * L</eval>
Related object: L<Hydra::Schema::JobsetEvals> =item * L</build>
=back
=cut =cut
__PACKAGE__->belongs_to("eval", "Hydra::Schema::JobsetEvals", { id => "eval" }, {}); __PACKAGE__->set_primary_key("eval", "build");
=head1 RELATIONS
=head2 build =head2 build
@ -93,9 +77,19 @@ Related object: L<Hydra::Schema::Builds>
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {}); __PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
=head2 eval
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-03-05 13:07:46 Type: belongs_to
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwefi8q3HolhFCkB9aEVWw
Related object: L<Hydra::Schema::JobsetEvals>
=cut
__PACKAGE__->belongs_to("eval", "Hydra::Schema::JobsetEvals", { id => "eval" }, {});
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0K4lDPUQeK04SEXS5yBbeA
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::JobsetEvals; package Hydra::Schema::JobsetEvals;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::JobsetEvals
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<JobsetEvals>
=head1 NAME
Hydra::Schema::JobsetEvals
=cut =cut
@ -21,139 +25,81 @@ __PACKAGE__->table("JobsetEvals");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef
is_auto_increment: 1 is_auto_increment: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 timestamp =head2 timestamp
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 checkouttime =head2 checkouttime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 evaltime =head2 evaltime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 hasnewbuilds =head2 hasnewbuilds
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 hash =head2 hash
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"id", "id",
{ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_auto_increment => 1,
is_nullable => 0,
size => undef,
},
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"timestamp", "timestamp",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"checkouttime", "checkouttime",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"evaltime", "evaltime",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"hasnewbuilds", "hasnewbuilds",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"hash", "hash",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
__PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 PRIMARY KEY
=head2 project =over 4
Type: belongs_to =item * L</id>
Related object: L<Hydra::Schema::Projects> =back
=cut =cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {}); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS
=head2 jobset =head2 jobset
@ -182,11 +128,22 @@ __PACKAGE__->has_many(
"jobsetevalmembers", "jobsetevalmembers",
"Hydra::Schema::JobsetEvalMembers", "Hydra::Schema::JobsetEvalMembers",
{ "foreign.eval" => "self.id" }, { "foreign.eval" => "self.id" },
{},
); );
=head2 project
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-03-05 13:33:51 Type: belongs_to
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QD7ZMOLp9HpK0mAYkk0d/Q
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eQtF5bcR/qZ625LxWBc7ug
use Hydra::Helper::Nix; use Hydra::Helper::Nix;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::JobsetInputAlts; package Hydra::Schema::JobsetInputAlts;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::JobsetInputAlts
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<JobsetInputAlts>
=head1 NAME
Hydra::Schema::JobsetInputAlts
=cut =cut
@ -21,112 +25,77 @@ __PACKAGE__->table("JobsetInputAlts");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 input =head2 input
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 altnr =head2 altnr
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 value =head2 value
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 revision =head2 revision
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 tag =head2 tag
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"input", "input",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"altnr", "altnr",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"value", "value",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"revision", "revision",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"tag", "tag",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</jobset>
=item * L</input>
=item * L</altnr>
=back
=cut
__PACKAGE__->set_primary_key("project", "jobset", "input", "altnr"); __PACKAGE__->set_primary_key("project", "jobset", "input", "altnr");
=head1 RELATIONS =head1 RELATIONS
@ -147,7 +116,7 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l75rIU6dDqdHBkPIaC+84w # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jtiF1/FMZBz6iUKqIhSeVw
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::JobsetInputs; package Hydra::Schema::JobsetInputs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::JobsetInputs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<JobsetInputs>
=head1 NAME
Hydra::Schema::JobsetInputs
=cut =cut
@ -21,89 +25,56 @@ __PACKAGE__->table("JobsetInputs");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 type =head2 type
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"type", "type",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
__PACKAGE__->set_primary_key("project", "jobset", "name");
=head1 RELATIONS =head1 PRIMARY KEY
=head2 jobsets =over 4
Type: has_many =item * L</project>
Related object: L<Hydra::Schema::Jobsets> =item * L</jobset>
=item * L</name>
=back
=cut =cut
__PACKAGE__->has_many( __PACKAGE__->set_primary_key("project", "jobset", "name");
"jobsets",
"Hydra::Schema::Jobsets", =head1 RELATIONS
{
"foreign.name" => "self.jobset",
"foreign.nixexprinput" => "self.name",
"foreign.project" => "self.project",
},
);
=head2 jobset =head2 jobset
@ -136,10 +107,30 @@ __PACKAGE__->has_many(
"foreign.jobset" => "self.jobset", "foreign.jobset" => "self.jobset",
"foreign.project" => "self.project", "foreign.project" => "self.project",
}, },
{},
);
=head2 jobsets
Type: has_many
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->has_many(
"jobsets",
"Hydra::Schema::Jobsets",
{
"foreign.name" => "self.jobset",
"foreign.nixexprinput" => "self.name",
"foreign.project" => "self.project",
},
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eThDu6WyuCUmDMEDlXyPkA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/eZhnWZHATn9+O6MzuPqA
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Jobsets; package Hydra::Schema::Jobsets;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Jobsets
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Jobsets>
=head1 NAME
Hydra::Schema::Jobsets
=cut =cut
@ -21,189 +25,176 @@ __PACKAGE__->table("Jobsets");
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 nixexprinput =head2 nixexprinput
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 nixexprpath =head2 nixexprpath
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 errormsg =head2 errormsg
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 errortime =head2 errortime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 lastcheckedtime =head2 lastcheckedtime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 enabled =head2 enabled
data_type: integer data_type: 'integer'
default_value: 1 default_value: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 enableemail =head2 enableemail
data_type: integer data_type: 'integer'
default_value: 1 default_value: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 hidden =head2 hidden
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 emailoverride =head2 emailoverride
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 keepnr =head2 keepnr
data_type: integer data_type: 'integer'
default_value: 3 default_value: 3
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"name", "name",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"nixexprinput", "nixexprinput",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"nixexprpath", "nixexprpath",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"errormsg", "errormsg",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"errortime", "errortime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"lastcheckedtime", "lastcheckedtime",
{ { data_type => "integer", is_nullable => 1 },
data_type => "integer",
default_value => undef,
is_nullable => 1,
size => undef,
},
"enabled", "enabled",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 1, is_nullable => 0 },
"enableemail", "enableemail",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 1, is_nullable => 0 },
"hidden", "hidden",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"emailoverride", "emailoverride",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"keepnr", "keepnr",
{ data_type => "integer", default_value => 3, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 3, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</name>
=back
=cut
__PACKAGE__->set_primary_key("project", "name"); __PACKAGE__->set_primary_key("project", "name");
=head1 RELATIONS =head1 RELATIONS
=head2 project =head2 builds
Type: belongs_to Type: has_many
Related object: L<Hydra::Schema::Projects> Related object: L<Hydra::Schema::Builds>
=cut =cut
__PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {}); __PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
{},
);
=head2 jobs
Type: has_many
Related object: L<Hydra::Schema::Jobs>
=cut
__PACKAGE__->has_many(
"jobs",
"Hydra::Schema::Jobs",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
{},
);
=head2 jobsetevals
Type: has_many
Related object: L<Hydra::Schema::JobsetEvals>
=cut
__PACKAGE__->has_many(
"jobsetevals",
"Hydra::Schema::JobsetEvals",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
{},
);
=head2 jobsetinput =head2 jobsetinput
@ -235,61 +226,21 @@ __PACKAGE__->has_many(
"foreign.jobset" => "self.name", "foreign.jobset" => "self.name",
"foreign.project" => "self.project", "foreign.project" => "self.project",
}, },
{},
); );
=head2 jobs =head2 project
Type: has_many Type: belongs_to
Related object: L<Hydra::Schema::Jobs> Related object: L<Hydra::Schema::Projects>
=cut =cut
__PACKAGE__->has_many( __PACKAGE__->belongs_to("project", "Hydra::Schema::Projects", { name => "project" }, {});
"jobs",
"Hydra::Schema::Jobs",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
=head2 builds
Type: has_many
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
=head2 jobsetevals
Type: has_many
Related object: L<Hydra::Schema::JobsetEvals>
=cut
__PACKAGE__->has_many(
"jobsetevals",
"Hydra::Schema::JobsetEvals",
{
"foreign.jobset" => "self.name",
"foreign.project" => "self.project",
},
);
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-08-10 08:24:15 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/GSJQxUcjCP4fn3peJVMg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ikvo8+cq03DzjEUvXSqYiQ
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::NewsItems; package Hydra::Schema::NewsItems;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::NewsItems
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<NewsItems>
=head1 NAME
Hydra::Schema::NewsItems
=cut =cut
@ -21,68 +25,49 @@ __PACKAGE__->table("NewsItems");
=head2 id =head2 id
data_type: integer data_type: 'integer'
default_value: undef
is_auto_increment: 1 is_auto_increment: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 contents =head2 contents
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 createtime =head2 createtime
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 author =head2 author
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"id", "id",
{ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_auto_increment => 1,
is_nullable => 0,
size => undef,
},
"contents", "contents",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"createtime", "createtime",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"author", "author",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");
=head1 RELATIONS =head1 RELATIONS
@ -98,8 +83,8 @@ Related object: L<Hydra::Schema::Users>
__PACKAGE__->belongs_to("author", "Hydra::Schema::Users", { username => "author" }, {}); __PACKAGE__->belongs_to("author", "Hydra::Schema::Users", { username => "author" }, {});
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-04-27 15:13:51 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SX13YZYhf5Uz5KZGphG/+w # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YRMh0QI4JezFLj7nywGu6Q
use Hydra::Helper::Nix; use Hydra::Helper::Nix;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::ProjectMembers; package Hydra::Schema::ProjectMembers;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::ProjectMembers
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<ProjectMembers>
=head1 NAME
Hydra::Schema::ProjectMembers
=cut =cut
@ -21,40 +25,37 @@ __PACKAGE__->table("ProjectMembers");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 username =head2 username
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"username", "username",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</username>
=back
=cut
__PACKAGE__->set_primary_key("project", "username"); __PACKAGE__->set_primary_key("project", "username");
=head1 RELATIONS =head1 RELATIONS
@ -85,8 +86,8 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-10 10:46:50 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/5E52ddbqTr6+kf+ixYZGA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:09p6h8c3+hRIjw3XmX15rA
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Projects; package Hydra::Schema::Projects;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Projects
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Projects>
=head1 NAME
Hydra::Schema::Projects
=cut =cut
@ -21,102 +25,135 @@ __PACKAGE__->table("Projects");
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 displayname =head2 displayname
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 enabled =head2 enabled
data_type: integer data_type: 'integer'
default_value: 1 default_value: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 hidden =head2 hidden
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 owner =head2 owner
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 homepage =head2 homepage
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"displayname", "displayname",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"enabled", "enabled",
{ data_type => "integer", default_value => 1, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 1, is_nullable => 0 },
"hidden", "hidden",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"owner", "owner",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"homepage", "homepage",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</name>
=back
=cut
__PACKAGE__->set_primary_key("name"); __PACKAGE__->set_primary_key("name");
=head1 RELATIONS =head1 RELATIONS
=head2 builds
Type: has_many
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->has_many(
"builds",
"Hydra::Schema::Builds",
{ "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 jobsetevals
Type: has_many
Related object: L<Hydra::Schema::JobsetEvals>
=cut
__PACKAGE__->has_many(
"jobsetevals",
"Hydra::Schema::JobsetEvals",
{ "foreign.project" => "self.name" },
{},
);
=head2 jobsets
Type: has_many
Related object: L<Hydra::Schema::Jobsets>
=cut
__PACKAGE__->has_many(
"jobsets",
"Hydra::Schema::Jobsets",
{ "foreign.project" => "self.name" },
{},
);
=head2 owner =head2 owner
Type: belongs_to Type: belongs_to
@ -139,90 +176,7 @@ __PACKAGE__->has_many(
"projectmembers", "projectmembers",
"Hydra::Schema::ProjectMembers", "Hydra::Schema::ProjectMembers",
{ "foreign.project" => "self.name" }, { "foreign.project" => "self.name" },
); {},
=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 =head2 releasemembers
@ -237,25 +191,57 @@ __PACKAGE__->has_many(
"releasemembers", "releasemembers",
"Hydra::Schema::ReleaseMembers", "Hydra::Schema::ReleaseMembers",
{ "foreign.project" => "self.name" }, { "foreign.project" => "self.name" },
{},
); );
=head2 jobsetevals =head2 releases
Type: has_many Type: has_many
Related object: L<Hydra::Schema::JobsetEvals> Related object: L<Hydra::Schema::Releases>
=cut =cut
__PACKAGE__->has_many( __PACKAGE__->has_many(
"jobsetevals", "releases",
"Hydra::Schema::JobsetEvals", "Hydra::Schema::Releases",
{ "foreign.project" => "self.name" }, { "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 views
Type: has_many
Related object: L<Hydra::Schema::Views>
=cut
__PACKAGE__->has_many(
"views",
"Hydra::Schema::Views",
{ "foreign.project" => "self.name" },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-06-04 16:32:43 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b6DRXQBuBX5/tm+3VPO9yA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cnheEOmK/5fCX1ui4OWPog
# These lines were loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Projects.pm' found in @INC. # These lines were loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Projects.pm' found in @INC.
# They are now part of the custom portion of this file # They are now part of the custom portion of this file
# for you to hand-edit. If you do not either delete # for you to hand-edit. If you do not either delete

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::ReleaseMembers; package Hydra::Schema::ReleaseMembers;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::ReleaseMembers
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<ReleaseMembers>
=head1 NAME
Hydra::Schema::ReleaseMembers
=cut =cut
@ -21,74 +25,68 @@ __PACKAGE__->table("ReleaseMembers");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 release_ =head2 release_
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 build =head2 build
data_type: integer data_type: 'integer'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"release_", "release_",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"build", "build",
{ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</release_>
=item * L</build>
=back
=cut
__PACKAGE__->set_primary_key("project", "release_", "build"); __PACKAGE__->set_primary_key("project", "release_", "build");
=head1 RELATIONS =head1 RELATIONS
=head2 build
Type: belongs_to
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
=head2 project =head2 project
Type: belongs_to Type: belongs_to
@ -114,18 +112,8 @@ __PACKAGE__->belongs_to(
{}, {},
); );
=head2 build
Type: belongs_to # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SBMfzENPE0BjEwc2HAK7IA
Related object: L<Hydra::Schema::Builds>
=cut
__PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }, {});
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QTByw0fKIXFIYYSXCtKyyw
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Releases; package Hydra::Schema::Releases;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Releases
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Releases>
=head1 NAME
Hydra::Schema::Releases
=cut =cut
@ -21,66 +25,50 @@ __PACKAGE__->table("Releases");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 timestamp =head2 timestamp
data_type: integer data_type: 'integer'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"timestamp", "timestamp",
{ { data_type => "integer", is_nullable => 0 },
data_type => "integer",
default_value => undef,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</name>
=back
=cut
__PACKAGE__->set_primary_key("project", "name"); __PACKAGE__->set_primary_key("project", "name");
=head1 RELATIONS =head1 RELATIONS
@ -110,10 +98,11 @@ __PACKAGE__->has_many(
"foreign.project" => "self.project", "foreign.project" => "self.project",
"foreign.release_" => "self.name", "foreign.release_" => "self.name",
}, },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tUuuHG9duLzmDhUywM+ErQ # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W6GOMPv7hc2EAdVaBOvc3A
1; 1;

View file

@ -0,0 +1,57 @@
use utf8;
package Hydra::Schema::SchemaVersion;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::SchemaVersion
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<SchemaVersion>
=cut
__PACKAGE__->table("SchemaVersion");
=head1 ACCESSORS
=head2 version
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
=cut
__PACKAGE__->add_columns(
"version",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
);
=head1 PRIMARY KEY
=over 4
=item * L</version>
=back
=cut
__PACKAGE__->set_primary_key("version");
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/jsSRq8pxR4mWq/N4qYGw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::SystemTypes; package Hydra::Schema::SystemTypes;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::SystemTypes
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<SystemTypes>
=head1 NAME
Hydra::Schema::SystemTypes
=cut =cut
@ -21,35 +25,38 @@ __PACKAGE__->table("SystemTypes");
=head2 system =head2 system
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 maxconcurrent =head2 maxconcurrent
data_type: integer data_type: 'integer'
default_value: 2 default_value: 2
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"system", "system",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"maxconcurrent", "maxconcurrent",
{ data_type => "integer", default_value => 2, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 2, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</system>
=back
=cut
__PACKAGE__->set_primary_key("system"); __PACKAGE__->set_primary_key("system");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cY3UlAd8a/jARP5klFLP6g # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zg8db3Cbi0QOv+gLJqH8cQ
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::UriRevMapper; package Hydra::Schema::UriRevMapper;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::UriRevMapper
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<UriRevMapper>
=head1 NAME
Hydra::Schema::UriRevMapper
=cut =cut
@ -21,41 +25,38 @@ __PACKAGE__->table("UriRevMapper");
=head2 baseuri =head2 baseuri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 uri =head2 uri
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"baseuri", "baseuri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"uri", "uri",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</baseuri>
=back
=cut
__PACKAGE__->set_primary_key("baseuri"); __PACKAGE__->set_primary_key("baseuri");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 12:58:30 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r3ricsHLJ6t/8kg+5Gu5Qw # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hzKzGAgAiCfU0nBOiDnjWw
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::UserRoles; package Hydra::Schema::UserRoles;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::UserRoles
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<UserRoles>
=head1 NAME
Hydra::Schema::UserRoles
=cut =cut
@ -21,38 +25,36 @@ __PACKAGE__->table("UserRoles");
=head2 username =head2 username
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 role =head2 role
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"username", "username",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"role", "role",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</username>
=item * L</role>
=back
=cut
__PACKAGE__->set_primary_key("username", "role"); __PACKAGE__->set_primary_key("username", "role");
=head1 RELATIONS =head1 RELATIONS
@ -73,7 +75,7 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qEshVHXf4YQ0SEVeZ9cVLQ # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TySGsLoTpeSuThILIXUaVg
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Users; package Hydra::Schema::Users;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Users
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Users>
=head1 NAME
Hydra::Schema::Users
=cut =cut
@ -21,103 +25,72 @@ __PACKAGE__->table("Users");
=head2 username =head2 username
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 fullname =head2 fullname
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 emailaddress =head2 emailaddress
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 password =head2 password
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 emailonerror =head2 emailonerror
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"username", "username",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"fullname", "fullname",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"emailaddress", "emailaddress",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"password", "password",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"emailonerror", "emailonerror",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</username>
=back
=cut
__PACKAGE__->set_primary_key("username"); __PACKAGE__->set_primary_key("username");
=head1 RELATIONS =head1 RELATIONS
=head2 userroles =head2 newsitems
Type: has_many Type: has_many
Related object: L<Hydra::Schema::UserRoles> Related object: L<Hydra::Schema::NewsItems>
=cut =cut
__PACKAGE__->has_many( __PACKAGE__->has_many(
"userroles", "newsitems",
"Hydra::Schema::UserRoles", "Hydra::Schema::NewsItems",
{ "foreign.username" => "self.username" }, { "foreign.author" => "self.username" },
); {},
=head2 projects
Type: has_many
Related object: L<Hydra::Schema::Projects>
=cut
__PACKAGE__->has_many(
"projects",
"Hydra::Schema::Projects",
{ "foreign.owner" => "self.username" },
); );
=head2 projectmembers =head2 projectmembers
@ -132,25 +105,42 @@ __PACKAGE__->has_many(
"projectmembers", "projectmembers",
"Hydra::Schema::ProjectMembers", "Hydra::Schema::ProjectMembers",
{ "foreign.username" => "self.username" }, { "foreign.username" => "self.username" },
{},
); );
=head2 newsitems =head2 projects
Type: has_many Type: has_many
Related object: L<Hydra::Schema::NewsItems> Related object: L<Hydra::Schema::Projects>
=cut =cut
__PACKAGE__->has_many( __PACKAGE__->has_many(
"newsitems", "projects",
"Hydra::Schema::NewsItems", "Hydra::Schema::Projects",
{ "foreign.author" => "self.username" }, { "foreign.owner" => "self.username" },
{},
);
=head2 userroles
Type: has_many
Related object: L<Hydra::Schema::UserRoles>
=cut
__PACKAGE__->has_many(
"userroles",
"Hydra::Schema::UserRoles",
{ "foreign.username" => "self.username" },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-04-27 15:13:51 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:C5uoz6EYyYL442zRYmXkyw # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3fmr8WMAE9Dg7TKom76YIQ
# These lines were loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Users.pm' found in @INC. # These lines were loaded from '/home/rbvermaa/src/hydra/src/lib/Hydra/Schema/Users.pm' found in @INC.
# They are now part of the custom portion of this file # They are now part of the custom portion of this file
# for you to hand-edit. If you do not either delete # for you to hand-edit. If you do not either delete

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::ViewJobs; package Hydra::Schema::ViewJobs;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::ViewJobs
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<ViewJobs>
=head1 NAME
Hydra::Schema::ViewJobs
=cut =cut
@ -21,114 +25,85 @@ __PACKAGE__->table("ViewJobs");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 view_ =head2 view_
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 job =head2 job
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 attrs =head2 attrs
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 isprimary =head2 isprimary
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 jobset =head2 jobset
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 autorelease =head2 autorelease
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"view_", "view_",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"job", "job",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"attrs", "attrs",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"isprimary", "isprimary",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"jobset", "jobset",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"autorelease", "autorelease",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</view_>
=item * L</job>
=item * L</attrs>
=back
=cut
__PACKAGE__->set_primary_key("project", "view_", "job", "attrs"); __PACKAGE__->set_primary_key("project", "view_", "job", "attrs");
=head1 RELATIONS =head1 RELATIONS
@ -159,7 +134,7 @@ __PACKAGE__->belongs_to(
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+aFIv2sSlgMWKcQuWnq0fg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U9/ovaBs9kFO3flG/MZ5uA
1; 1;

View file

@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::Views; package Hydra::Schema::Views;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Views
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<Views>
=head1 NAME
Hydra::Schema::Views
=cut =cut
@ -21,61 +25,51 @@ __PACKAGE__->table("Views");
=head2 project =head2 project
data_type: text data_type: 'text'
default_value: undef
is_foreign_key: 1 is_foreign_key: 1
is_nullable: 0 is_nullable: 0
size: undef
=head2 name =head2 name
data_type: text data_type: 'text'
default_value: undef
is_nullable: 0 is_nullable: 0
size: undef
=head2 description =head2 description
data_type: text data_type: 'text'
default_value: undef
is_nullable: 1 is_nullable: 1
size: undef
=head2 keep =head2 keep
data_type: integer data_type: 'integer'
default_value: 0 default_value: 0
is_nullable: 0 is_nullable: 0
size: undef
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
"project", "project",
{ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
data_type => "text",
default_value => undef,
is_foreign_key => 1,
is_nullable => 0,
size => undef,
},
"name", "name",
{ { data_type => "text", is_nullable => 0 },
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
"description", "description",
{ { data_type => "text", is_nullable => 1 },
data_type => "text",
default_value => undef,
is_nullable => 1,
size => undef,
},
"keep", "keep",
{ data_type => "integer", default_value => 0, is_nullable => 0, size => undef }, { data_type => "integer", default_value => 0, is_nullable => 0 },
); );
=head1 PRIMARY KEY
=over 4
=item * L</project>
=item * L</name>
=back
=cut
__PACKAGE__->set_primary_key("project", "name"); __PACKAGE__->set_primary_key("project", "name");
=head1 RELATIONS =head1 RELATIONS
@ -102,10 +96,11 @@ __PACKAGE__->has_many(
"viewjobs", "viewjobs",
"Hydra::Schema::ViewJobs", "Hydra::Schema::ViewJobs",
{ "foreign.project" => "self.project", "foreign.view_" => "self.name" }, { "foreign.project" => "self.project", "foreign.view_" => "self.name" },
{},
); );
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41 # Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ziocg+WjpiRs3lmlPJL4YA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cP9XYKw4y9QL+PDJYy9M5w
1; 1;

View file

@ -12,4 +12,4 @@ hydra-sqlite.sql: hydra.sql
update-dbix: hydra-sqlite.sql update-dbix: hydra-sqlite.sql
rm -f tmp.sqlite rm -f tmp.sqlite
sqlite3 tmp.sqlite < hydra-sqlite.sql sqlite3 tmp.sqlite < hydra-sqlite.sql
perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:../lib -e 'make_schema_at("Hydra::Schema", { relationships => 1, moniker_map => sub {return $$_;} }, ["dbi:SQLite:tmp.sqlite"])' perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:../lib -e 'make_schema_at("Hydra::Schema", { naming => { ALL => "v5" }, relationships => 1, moniker_map => sub {return "$$_";} }, ["dbi:SQLite:tmp.sqlite"])'

View file

@ -1,3 +1,11 @@
-- Singleton table to keep track of the schema version.
create table SchemaVersion (
version integer not null
);
insert into SchemaVersion (version) values (1);
create table Users ( create table Users (
userName text primary key not null, userName text primary key not null,
fullName text, fullName text,