X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FMaintainer.pm;h=a15e55cca923d1d0ddf10acdde4bbeda1b59e038;hb=e4f2d0b50aaaf78dba8ca82f757e19399e581e07;hp=8ab3d549b8d0e02b4160fc5cc77338d00ce5a66c;hpb=b68ed2919293655d61ab412efc719b75aee9287b;p=debbugs.git diff --git a/Debbugs/DB/Result/Maintainer.pm b/Debbugs/DB/Result/Maintainer.pm index 8ab3d54..a15e55c 100644 --- a/Debbugs/DB/Result/Maintainer.pm +++ b/Debbugs/DB/Result/Maintainer.pm @@ -51,6 +51,14 @@ Package maintainer id Name of package maintainer +=head2 correspondent + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 0 + +Correspondent ID + =head2 created data_type: 'timestamp with time zone' @@ -81,6 +89,8 @@ __PACKAGE__->add_columns( }, "name", { data_type => "text", is_nullable => 0 }, + "correspondent", + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "created", { data_type => "timestamp with time zone", @@ -111,7 +121,7 @@ __PACKAGE__->set_primary_key("id"); =head1 UNIQUE CONSTRAINTS -=head2 C +=head2 C =over 4 @@ -121,10 +131,25 @@ __PACKAGE__->set_primary_key("id"); =cut -__PACKAGE__->add_unique_constraint("maintainer_name_key", ["name"]); +__PACKAGE__->add_unique_constraint("maintainer_name_idx", ["name"]); =head1 RELATIONS +=head2 correspondent + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "correspondent", + "Debbugs::DB::Result::Correspondent", + { id => "correspondent" }, + { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, +); + =head2 src_vers Type: has_many @@ -136,13 +161,13 @@ Related object: L __PACKAGE__->has_many( "src_vers", "Debbugs::DB::Result::SrcVer", - { "foreign.maintainer_id" => "self.id" }, + { "foreign.maintainer" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 18:11:35 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:34HJCwoLU+I0PN5A1EzhYA +# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5E4fT7G2x7wdPfr7SMqgGg # You can replace this text with custom code or comments, and it will be preserved on regeneration