X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FMessageRef.pm;h=5f39e432512bac669519dea3ad4f472fb8aa9a48;hb=afb6e29198afbc16f103579d0c4815f9e5fbe214;hp=e57b1aa0fed6b1fbe7ca50473845419e7e76b9e4;hpb=9236374760584c410ebcb9cfdb19a481c1dedadb;p=debbugs.git diff --git a/Debbugs/DB/Result/MessageRef.pm b/Debbugs/DB/Result/MessageRef.pm index e57b1aa..5f39e43 100644 --- a/Debbugs/DB/Result/MessageRef.pm +++ b/Debbugs/DB/Result/MessageRef.pm @@ -6,7 +6,7 @@ package Debbugs::DB::Result::MessageRef; =head1 NAME -Debbugs::DB::Result::MessageRef +Debbugs::DB::Result::MessageRef - Message references =cut @@ -41,12 +41,32 @@ __PACKAGE__->table("message_refs"); is_foreign_key: 1 is_nullable: 0 +Message id (matches message) + =head2 refs data_type: 'integer' is_foreign_key: 1 is_nullable: 0 +Reference id (matches message) + +=head2 inferred + + data_type: 'boolean' + default_value: false + is_nullable: 1 + +TRUE if this message reference was reconstructed; primarily of use for messages which lack In-Reply-To: or References: headers + +=head2 primary_ref + + data_type: 'boolean' + default_value: false + is_nullable: 1 + +TRUE if this message->ref came from In-Reply-To: or similar. + =cut __PACKAGE__->add_columns( @@ -54,8 +74,28 @@ __PACKAGE__->add_columns( { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "refs", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, + "inferred", + { data_type => "boolean", default_value => \"false", is_nullable => 1 }, + "primary_ref", + { data_type => "boolean", default_value => \"false", is_nullable => 1 }, ); +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=back + +=cut + +__PACKAGE__->add_unique_constraint("message_refs_message_refs_idx", ["message", "refs"]); + =head1 RELATIONS =head2 message @@ -89,8 +129,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uCScDuC5TprnuyEjg25eXg +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qPL3EsH3iVrcwJKRNVzTEQ # You can replace this text with custom code or comments, and it will be preserved on regeneration