From 9877e36931e128132f7f9a0c1cd7948af87219ea Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 21 Aug 2019 12:20:56 -0400 Subject: [PATCH] Bug 14697: [DO NOT PUSH] Update Schema Files --- Koha/Schema/Result/Borrower.pm | 64 ++++++++++++++++++++++++++++++++-- Koha/Schema/Result/Issue.pm | 34 ++++++++++++++++-- Koha/Schema/Result/Item.pm | 19 ++++++++-- 3 files changed, 111 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 70007115d2..d2f04e0817 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -1288,6 +1288,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 @@ -1529,8 +1589,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-25 10:08:38 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3qd/l8OkObSn8gTKTsHrkA +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-08-21 16:16:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BA+02+mAkHshtqidkJQCQg __PACKAGE__->belongs_to( "guarantor", diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index 566f87b364..7ff33fb340 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -248,9 +248,39 @@ __PACKAGE__->belongs_to( }, ); +=head2 return_claims_issues -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PUF5X7X9K44BC0d43Rat7w +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_issues", + "Koha::Schema::Result::ReturnClaim", + { "foreign.issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 return_claims_old_issues + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "return_claims_old_issues", + "Koha::Schema::Result::ReturnClaim", + { "foreign.old_issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-08-21 16:16:44 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iGJxXU1HmOdiCWxosmhrzA __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 9d5743f5c2..92b71a68cc 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -671,6 +671,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 @@ -717,8 +732,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-14 18:14:09 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wDXcErUYqg0aoQkzz3P5vg +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-08-21 16:16:44 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2fq1D5qOwEuiIfaExy2zCw __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.20.1 (Apple Git-117)