From 29679898b31de4bb2c392fed0f03b291cbbfdaff Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Mar 2017 14:06:28 +0000 Subject: [PATCH] Bug 17361: Update existing schema --- Koha/Schema/Result/Item.pm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index ce85bd7b72..fdd02a6d61 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -599,6 +599,21 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 item_messages + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "item_messages", + "Koha::Schema::Result::ItemMessage", + { "foreign.itemnumber" => "self.itemnumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 items_last_borrower Type: might_have @@ -675,8 +690,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vf1sBZrpUo0Cvi896fjNuA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-03 14:03:01 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m7lTJnDxhx+N4NAq/C1OrA __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.12.0