From a670f9068d982d3f905967255006faf871cdaf4f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 29 Oct 2019 12:32:15 -0300 Subject: [PATCH] Bug 14697: Schema updates Signed-off-by: Tomas Cohen Arazi Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Lisette Scheer Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Borrower.pm | 64 ++++++++++++++++++++++++++++++++-- Koha/Schema/Result/Issue.pm | 4 +-- Koha/Schema/Result/Item.pm | 19 ++++++++-- 3 files changed, 81 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 07137a679b..f7224cc299 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -1334,6 +1334,66 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 return_claims_borrowernumbers + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_borrowernumbers", + "Koha::Schema::Result::ReturnClaim", + { "foreign.borrowernumber" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 return_claims_created_by + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_created_by", + "Koha::Schema::Result::ReturnClaim", + { "foreign.created_by" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 return_claims_resolved_by + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_resolved_by", + "Koha::Schema::Result::ReturnClaim", + { "foreign.resolved_by" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 return_claims_updated_by + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_updated_by", + "Koha::Schema::Result::ReturnClaim", + { "foreign.updated_by" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 reviews Type: has_many @@ -1575,8 +1635,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FRyurgV8tVN4EBduIM8tGA +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-10 14:31:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GjJLIOViIFRm185Yjl9vYA __PACKAGE__->add_columns( '+anonymized' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index 566f87b364..ef1696e786 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -249,8 +249,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PUF5X7X9K44BC0d43Rat7w +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-24 18:12:09 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:14iNqmSCD7OdcJMuZxbjpQ __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index da2a91f6ac..ba860f79b8 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -686,6 +686,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 return_claims + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims", + "Koha::Schema::Result::ReturnClaim", + { "foreign.itemnumber" => "self.itemnumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 serialitem Type: might_have @@ -732,8 +747,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n/X6k+IwU4pkLS+PjKWVWA +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-10 14:31:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dqUjo9pJysKKBhF8PM5KnA __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.39.5