]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/Correspondent.pm
Add id to bug_ver and some more indices
[debbugs.git] / Debbugs / DB / Result / Correspondent.pm
index 24cba227e4982d1bafa63fe3a03f9d349cf32c20..2bf83f93f0496b2000251485c142d2a470c020bb 100644 (file)
@@ -79,7 +79,7 @@ __PACKAGE__->set_primary_key("id");
 
 =head1 UNIQUE CONSTRAINTS
 
-=head2 C<correspondent_addr_key>
+=head2 C<correspondent_addr_idx>
 
 =over 4
 
@@ -89,7 +89,7 @@ __PACKAGE__->set_primary_key("id");
 
 =cut
 
-__PACKAGE__->add_unique_constraint("correspondent_addr_key", ["addr"]);
+__PACKAGE__->add_unique_constraint("correspondent_addr_idx", ["addr"]);
 
 =head1 RELATIONS
 
@@ -153,6 +153,21 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 maintainers
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::Maintainer>
+
+=cut
+
+__PACKAGE__->has_many(
+  "maintainers",
+  "Debbugs::DB::Result::Maintainer",
+  { "foreign.correspondent" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 message_correspondents
 
 Type: has_many
@@ -169,8 +184,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnVRI1FMGlY8Go0XOM3wwA
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iw5Rey49aurBMhqdnlKaiw
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration