From c44868ed95d640017c2475b3f816f4e5c989a574 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 23 Dec 2021 12:47:31 -0300 Subject: [PATCH] Bug 26129: DBIx::Class schema updates [DO NOT PUSH] --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Itemtype.pm | 19 +++++++++++++++++-- 3 files changed, 51 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 9a2b058bcd..da6c7e99ff 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -551,6 +551,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.library_id" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 course_items Type: has_many @@ -867,8 +882,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-19 14:20:11 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v83MNP0UpFzlnax8rSQWSA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-12-23 15:46:52 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JEbin9XFqQecBdQbbXP8Eg __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index 567bf33329..40b6399c8b 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -328,9 +328,24 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-19 14:20:11 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xrnHXXv5sd3S2sMEKzHLmA +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.category_id" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-12-23 15:46:52 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AlL9KyiY8x2oi6BQ8xmKPg __PACKAGE__->add_columns( '+exclude_from_local_holds_priority' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 1e14063e1d..427ffb5731 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -252,6 +252,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.item_type" => "self.itemtype" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 itemtypes Type: has_many @@ -333,8 +348,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-22 09:12:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/kFAnQQ7q1KaLJ9h7vk0vg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-12-23 15:46:52 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9z5L14pLpt66RyfHK+rxkA __PACKAGE__->add_columns( '+rentalcharge_hourly_calendar' => { is_boolean => 1 }, -- 2.32.0