From 46b6302d2a23b40f1a746d980fe2141dd3c38d74 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 2 Jun 2022 16:20:00 +0000 Subject: [PATCH] Bug 24857: DO NOT PUSH: Schema changes --- Koha/Schema/Result/Biblio.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Item.pm | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index ddae29b069..7a0c0ec453 100644 --- a/Koha/Schema/Result/Biblio.pm +++ b/Koha/Schema/Result/Biblio.pm @@ -315,6 +315,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 item_groups + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "item_groups", + "Koha::Schema::Result::ItemGroup", + { "foreign.biblio_id" => "self.biblionumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 items Type: has_many @@ -541,8 +556,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-03-28 22:07:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sh8waM4ivuiNao0VV5403Q +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UX7bRTwMVUX3lzXDQ//vJg __PACKAGE__->has_many( "biblioitem", diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index ce96288737..05b5adc25d 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -729,6 +729,21 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 item_group_item + +Type: might_have + +Related object: L + +=cut + +__PACKAGE__->might_have( + "item_group_item", + "Koha::Schema::Result::ItemGroupItem", + { "foreign.item_id" => "self.itemnumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 items_last_borrower Type: might_have @@ -880,8 +895,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-03-28 22:07:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:28f9/7z3Nq5C4qzBMyceiQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:92i001BWaQoVRbuG+NhIBw __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.30.2