From e37255f8eb68d4efc64ca29c31fdb1c8b51eb458 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 1 Apr 2013 17:48:18 -0700 Subject: [PATCH] update result classes for new relationships --- Debbugs/DB/Result/Arch.pm | 19 ++- Debbugs/DB/Result/BinAssociation.pm | 4 +- Debbugs/DB/Result/BinPkg.pm | 4 +- Debbugs/DB/Result/BinVer.pm | 4 +- Debbugs/DB/Result/BinaryVersion.pm | 4 +- Debbugs/DB/Result/Bug.pm | 154 +++++++++++++++------ Debbugs/DB/Result/BugBinpackage.pm | 4 +- Debbugs/DB/Result/BugBlock.pm | 4 +- Debbugs/DB/Result/BugMerged.pm | 4 +- Debbugs/DB/Result/BugMessage.pm | 4 +- Debbugs/DB/Result/BugPackage.pm | 4 +- Debbugs/DB/Result/BugSrcpackage.pm | 4 +- Debbugs/DB/Result/BugTag.pm | 14 +- Debbugs/DB/Result/BugVer.pm | 4 +- Debbugs/DB/Result/Correspondent.pm | 33 +++-- Debbugs/DB/Result/CorrespondentFullName.pm | 13 +- Debbugs/DB/Result/Maintainer.pm | 4 +- Debbugs/DB/Result/Message.pm | 4 +- Debbugs/DB/Result/MessageCorrespondent.pm | 4 +- Debbugs/DB/Result/MessageRef.pm | 4 +- Debbugs/DB/Result/Severity.pm | 14 +- Debbugs/DB/Result/SrcAssociation.pm | 4 +- Debbugs/DB/Result/SrcPkg.pm | 4 +- Debbugs/DB/Result/SrcVer.pm | 4 +- Debbugs/DB/Result/Suite.pm | 19 ++- Debbugs/DB/Result/Tag.pm | 6 +- 26 files changed, 235 insertions(+), 109 deletions(-) diff --git a/Debbugs/DB/Result/Arch.pm b/Debbugs/DB/Result/Arch.pm index c83919d..420d325 100644 --- a/Debbugs/DB/Result/Arch.pm +++ b/Debbugs/DB/Result/Arch.pm @@ -108,9 +108,24 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 bug_status_caches -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uGFK5fZtpICxsMMtGzTgww +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "bug_status_caches", + "Debbugs::DB::Result::BugStatusCache", + { "foreign.arch" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jkMopbSgd3Carub/plyQQA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BinAssociation.pm b/Debbugs/DB/Result/BinAssociation.pm index 622aea7..c074597 100644 --- a/Debbugs/DB/Result/BinAssociation.pm +++ b/Debbugs/DB/Result/BinAssociation.pm @@ -153,8 +153,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6mrwiUeFTasNbK3nr0qT5g +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CuIGLI5HKte90nfppS4Phw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BinPkg.pm b/Debbugs/DB/Result/BinPkg.pm index 7b007b4..e951e03 100644 --- a/Debbugs/DB/Result/BinPkg.pm +++ b/Debbugs/DB/Result/BinPkg.pm @@ -124,8 +124,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1oGi5SVSzjSxaUmwZBtogw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E/y1hURij+mI11E63GPZZg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BinVer.pm b/Debbugs/DB/Result/BinVer.pm index ec98991..688b7fe 100644 --- a/Debbugs/DB/Result/BinVer.pm +++ b/Debbugs/DB/Result/BinVer.pm @@ -202,8 +202,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Ff81rK1vte+lYz15XofpA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3K+5M1Rohq6AB4uLnVco+w # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BinaryVersion.pm b/Debbugs/DB/Result/BinaryVersion.pm index 6404f2a..a959c82 100644 --- a/Debbugs/DB/Result/BinaryVersion.pm +++ b/Debbugs/DB/Result/BinaryVersion.pm @@ -90,8 +90,8 @@ __PACKAGE__->add_columns( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 16:20:31 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:77yN9sUsXItcsQ1qJETQaw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PiJglTBqLYRIi63gvGWIDQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Bug.pm b/Debbugs/DB/Result/Bug.pm index 7cab97f..2782522 100644 --- a/Debbugs/DB/Result/Bug.pm +++ b/Debbugs/DB/Result/Bug.pm @@ -115,30 +115,54 @@ Outlook of the bug; empty if it has no outlook Subject of the bug -=head2 done +=head2 severity - data_type: 'text' - default_value: (empty string) + data_type: 'integer' + is_foreign_key: 1 is_nullable: 0 +=head2 done + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + Individual who did the -done; empty if it has never been -done -=head2 owner +=head2 done_full data_type: 'text' default_value: (empty string) is_nullable: 0 +=head2 owner + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + Individual who owns this bug; empty if no one owns it -=head2 submitter +=head2 owner_full data_type: 'text' default_value: (empty string) is_nullable: 0 +=head2 submitter + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + Individual who submitted this bug; empty if there is no submitter +=head2 submitter_full + + data_type: 'text' + default_value: (empty string) + is_nullable: 0 + =head2 unknown_packages data_type: 'text' @@ -185,11 +209,19 @@ __PACKAGE__->add_columns( { data_type => "text", default_value => "", is_nullable => 0 }, "subject", { data_type => "text", is_nullable => 0 }, + "severity", + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "done", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "done_full", { data_type => "text", default_value => "", is_nullable => 0 }, "owner", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "owner_full", { data_type => "text", default_value => "", is_nullable => 0 }, "submitter", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "submitter_full", { data_type => "text", default_value => "", is_nullable => 0 }, "unknown_packages", { data_type => "text", default_value => "", is_nullable => 0 }, @@ -284,21 +316,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 bug_severity - -Type: might_have - -Related object: L - -=cut - -__PACKAGE__->might_have( - "bug_severity", - "Debbugs::DB::Result::BugSeverity", - { "foreign.bug" => "self.id" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 bug_srcpackages Type: has_many @@ -314,17 +331,17 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 bug_submitters +=head2 bug_status_caches Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "bug_submitters", - "Debbugs::DB::Result::BugSubmitter", + "bug_status_caches", + "Debbugs::DB::Result::BugStatusCache", { "foreign.bug" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); @@ -359,40 +376,99 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 bugs_done_by +=head2 bugs_merged_merged Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "bugs_done_by", - "Debbugs::DB::Result::BugDoneBy", - { "foreign.bug" => "self.id" }, + "bugs_merged_merged", + "Debbugs::DB::Result::BugMerged", + { "foreign.merged" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 bugs_merged_merged +=head2 done -Type: has_many +Type: belongs_to -Related object: L +Related object: L =cut -__PACKAGE__->has_many( - "bugs_merged_merged", - "Debbugs::DB::Result::BugMerged", - { "foreign.merged" => "self.id" }, - { cascade_copy => 0, cascade_delete => 0 }, +__PACKAGE__->belongs_to( + "done", + "Debbugs::DB::Result::Correspondent", + { id => "done" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 owner + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "owner", + "Debbugs::DB::Result::Correspondent", + { id => "owner" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 severity + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "severity", + "Debbugs::DB::Result::Severity", + { id => "severity" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); +=head2 submitter + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "submitter", + "Debbugs::DB::Result::Correspondent", + { id => "submitter" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cPIz8V6KUWZip+5Dvi7+4Q +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:59:31 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hRsCzIGJB1krEYpMKmSVYw # You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Debbugs/DB/Result/BugBinpackage.pm b/Debbugs/DB/Result/BugBinpackage.pm index 4f0a1ba..102feeb 100644 --- a/Debbugs/DB/Result/BugBinpackage.pm +++ b/Debbugs/DB/Result/BugBinpackage.pm @@ -135,8 +135,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kfOppT635GeL9tvBVm6VNA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cQ0MmOnrqlxvxubcvh4PBg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugBlock.pm b/Debbugs/DB/Result/BugBlock.pm index e6f8d30..273eca0 100644 --- a/Debbugs/DB/Result/BugBlock.pm +++ b/Debbugs/DB/Result/BugBlock.pm @@ -135,8 +135,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KMeb2Z3p/g1ihuTwbl2R7w +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QswG/RKpqrXvpj74XiV0WQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugMerged.pm b/Debbugs/DB/Result/BugMerged.pm index 881136d..7e8781d 100644 --- a/Debbugs/DB/Result/BugMerged.pm +++ b/Debbugs/DB/Result/BugMerged.pm @@ -135,8 +135,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:We33XZGYf3rBQO/xmfEOrg +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8wKFwMnVTQBFyOIgB82LSA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugMessage.pm b/Debbugs/DB/Result/BugMessage.pm index 07a4351..365d275 100644 --- a/Debbugs/DB/Result/BugMessage.pm +++ b/Debbugs/DB/Result/BugMessage.pm @@ -146,8 +146,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 21:34:19 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v1hxqbRZsqjnYYqfKnuNug +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3UCOADGWEq7+IA7L23sa5A # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugPackage.pm b/Debbugs/DB/Result/BugPackage.pm index 27bdfd4..2601f95 100644 --- a/Debbugs/DB/Result/BugPackage.pm +++ b/Debbugs/DB/Result/BugPackage.pm @@ -69,8 +69,8 @@ __PACKAGE__->add_columns( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z0ytKzfSK0huQAZwrklLUA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:593NXq7J5AFjjfFjMLXIvw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugSrcpackage.pm b/Debbugs/DB/Result/BugSrcpackage.pm index b74fa4c..736074f 100644 --- a/Debbugs/DB/Result/BugSrcpackage.pm +++ b/Debbugs/DB/Result/BugSrcpackage.pm @@ -135,8 +135,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:afOJNl3BAD0xSo41IyTJZA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jirMkEXqyqHGMbRiQ2hObw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugTag.pm b/Debbugs/DB/Result/BugTag.pm index d68a93a..81c16ed 100644 --- a/Debbugs/DB/Result/BugTag.pm +++ b/Debbugs/DB/Result/BugTag.pm @@ -50,7 +50,7 @@ __PACKAGE__->table("bug_tag"); Bug id (matches bug) -=head2 tag_id +=head2 tag data_type: 'integer' is_foreign_key: 1 @@ -70,7 +70,7 @@ __PACKAGE__->add_columns( }, "bug", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, - "tag_id", + "tag", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, ); @@ -94,13 +94,13 @@ __PACKAGE__->set_primary_key("id"); =item * L -=item * L +=item * L =back =cut -__PACKAGE__->add_unique_constraint("bug_tag_bug_tag_id", ["bug", "tag_id"]); +__PACKAGE__->add_unique_constraint("bug_tag_bug_tag_id", ["bug", "tag"]); =head1 RELATIONS @@ -130,13 +130,13 @@ Related object: L __PACKAGE__->belongs_to( "tag", "Debbugs::DB::Result::Tag", - { id => "tag_id" }, + { id => "tag" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fGlaYDuI8YCGvA1gY7DNaQ +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7cqkTgwzMw4wP3LtAKaBDg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/BugVer.pm b/Debbugs/DB/Result/BugVer.pm index 9d2bdcc..d35f3e6 100644 --- a/Debbugs/DB/Result/BugVer.pm +++ b/Debbugs/DB/Result/BugVer.pm @@ -200,8 +200,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t2bjlM8I5vRChrNgknwI4g +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/WX1pwdsAUjQK28CwCaDQw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Correspondent.pm b/Debbugs/DB/Result/Correspondent.pm index be76b85..24cba22 100644 --- a/Debbugs/DB/Result/Correspondent.pm +++ b/Debbugs/DB/Result/Correspondent.pm @@ -93,33 +93,48 @@ __PACKAGE__->add_unique_constraint("correspondent_addr_key", ["addr"]); =head1 RELATIONS +=head2 bug_owners + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "bug_owners", + "Debbugs::DB::Result::Bug", + { "foreign.owner" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 bug_submitters Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( "bug_submitters", - "Debbugs::DB::Result::BugSubmitter", + "Debbugs::DB::Result::Bug", { "foreign.submitter" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 bugs_done_by +=head2 bugs_done Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "bugs_done_by", - "Debbugs::DB::Result::BugDoneBy", - { "foreign.done_by" => "self.id" }, + "bugs_done", + "Debbugs::DB::Result::Bug", + { "foreign.done" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); @@ -154,8 +169,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ev/tN0AsOcs7AfC3Iz84dQ +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnVRI1FMGlY8Go0XOM3wwA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/CorrespondentFullName.pm b/Debbugs/DB/Result/CorrespondentFullName.pm index c137ee5..738004b 100644 --- a/Debbugs/DB/Result/CorrespondentFullName.pm +++ b/Debbugs/DB/Result/CorrespondentFullName.pm @@ -87,17 +87,22 @@ __PACKAGE__->set_primary_key("id"); =head1 UNIQUE CONSTRAINTS -=head2 C +=head2 C =over 4 +=item * L + =item * L =back =cut -__PACKAGE__->add_unique_constraint("correspondent_full_name_full_name_key", ["full_name"]); +__PACKAGE__->add_unique_constraint( + "correspondent_full_name_correspondent_full_name_idx", + ["correspondent", "full_name"], +); =head1 RELATIONS @@ -117,8 +122,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U7mn1zcYHvgfaD4arcYAeA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 17:05:37 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xGcJNDjhN+ehcFQYzaBxBw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Maintainer.pm b/Debbugs/DB/Result/Maintainer.pm index 8ab3d54..53bfc0f 100644 --- a/Debbugs/DB/Result/Maintainer.pm +++ b/Debbugs/DB/Result/Maintainer.pm @@ -141,8 +141,8 @@ __PACKAGE__->has_many( ); -# 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.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pjSawHrI2qYqUHgkdxgh8g # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Message.pm b/Debbugs/DB/Result/Message.pm index 70b876d..ef36a9e 100644 --- a/Debbugs/DB/Result/Message.pm +++ b/Debbugs/DB/Result/Message.pm @@ -224,8 +224,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M6k3YCfOyYLnQJ+qBcoJlQ +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5H4wsTVgTSnpnO1XcbvhHA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/MessageCorrespondent.pm b/Debbugs/DB/Result/MessageCorrespondent.pm index 8609117..7792290 100644 --- a/Debbugs/DB/Result/MessageCorrespondent.pm +++ b/Debbugs/DB/Result/MessageCorrespondent.pm @@ -159,8 +159,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 21:34:19 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fyy71zaVBm59n1blNwJ23w +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d2QCcAGqZtl1l7tx1fEwyg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/MessageRef.pm b/Debbugs/DB/Result/MessageRef.pm index a4914d3..9d9d514 100644 --- a/Debbugs/DB/Result/MessageRef.pm +++ b/Debbugs/DB/Result/MessageRef.pm @@ -155,8 +155,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 21:34:19 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sV72FKvhPxYd6eWvCE4i9Q +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+vwRG2KAV0YTTXZE0Vv21A # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Severity.pm b/Debbugs/DB/Result/Severity.pm index a78b676..5a50252 100644 --- a/Debbugs/DB/Result/Severity.pm +++ b/Debbugs/DB/Result/Severity.pm @@ -123,24 +123,24 @@ __PACKAGE__->add_unique_constraint("severity_severity_key", ["severity"]); =head1 RELATIONS -=head2 bug_severities +=head2 bugs Type: has_many -Related object: L +Related object: L =cut __PACKAGE__->has_many( - "bug_severities", - "Debbugs::DB::Result::BugSeverity", - { "foreign.severity_id" => "self.id" }, + "bugs", + "Debbugs::DB::Result::Bug", + { "foreign.severity" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 23:19:35 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ofel01VRzkuSKCGAU6hmMg +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 19:35:10 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVJ20W+hu/tjDthRG38xtA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/SrcAssociation.pm b/Debbugs/DB/Result/SrcAssociation.pm index 0496a64..fff8c4c 100644 --- a/Debbugs/DB/Result/SrcAssociation.pm +++ b/Debbugs/DB/Result/SrcAssociation.pm @@ -153,8 +153,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KLRKATys7SUGy+1bmADToQ +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7lYnCaf4vZZFcZoz2S7O9A # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/SrcPkg.pm b/Debbugs/DB/Result/SrcPkg.pm index ae745c5..ac28c90 100644 --- a/Debbugs/DB/Result/SrcPkg.pm +++ b/Debbugs/DB/Result/SrcPkg.pm @@ -192,8 +192,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:25A54CF+CL9tRJ6AUDu+FA +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w1ifDwgGG57aeGxFptavbg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/SrcVer.pm b/Debbugs/DB/Result/SrcVer.pm index 0b86ced..cd99a16 100644 --- a/Debbugs/DB/Result/SrcVer.pm +++ b/Debbugs/DB/Result/SrcVer.pm @@ -257,8 +257,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I9bHyZBAJim7KZNk9Yd6Vw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hhXOPJ8se5BVKMsbvf+szw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Suite.pm b/Debbugs/DB/Result/Suite.pm index fdfab37..3723aca 100644 --- a/Debbugs/DB/Result/Suite.pm +++ b/Debbugs/DB/Result/Suite.pm @@ -136,6 +136,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 bug_status_caches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "bug_status_caches", + "Debbugs::DB::Result::BugStatusCache", + { "foreign.suite" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 src_associations Type: has_many @@ -152,8 +167,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1NiRLPvDC3xRPr7+fbzp/w +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wp8D70L0WeBbMqWkFEZEyQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Debbugs/DB/Result/Tag.pm b/Debbugs/DB/Result/Tag.pm index cdcef2c..85a2263 100644 --- a/Debbugs/DB/Result/Tag.pm +++ b/Debbugs/DB/Result/Tag.pm @@ -114,13 +114,13 @@ Related object: L __PACKAGE__->has_many( "bug_tags", "Debbugs::DB::Result::BugTag", - { "foreign.tag_id" => "self.id" }, + { "foreign.tag" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JNPrdP77YEkirbzdASjcKw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O+iuATuRz+/8rETu8oYO9Q # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.39.2