From cfb73860dcc3ead3fc955ff55303c935aca1f04a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 29 Apr 2020 17:11:35 +0100 Subject: [PATCH] Bug 22630: Schema Update Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Branch.pm | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 22d3172aae..478c06fc0e 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -488,6 +488,36 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 course_items_homebranch_storages + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "course_items_homebranch_storages", + "Koha::Schema::Result::CourseItem", + { "foreign.homebranch_storage" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 course_items_homebranches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "course_items_homebranches", + "Koha::Schema::Result::CourseItem", + { "foreign.homebranch" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 creator_batches Type: has_many @@ -759,8 +789,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-01 09:42:50 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OK9rj4bv4KW5if0kLRDTSg +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-29 16:09:25 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9f0Crr57ffdoe8syXgawng __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 } -- 2.11.4.GIT