From 52b21410660e2c5222f55f6c9e3f24c9b1914ebd Mon Sep 17 00:00:00 2001 From: Agustin Moyano Date: Thu, 18 Aug 2022 16:48:26 -0300 Subject: [PATCH] Bug 31378: DBIC updates [DO NOT PUSH] Signed-off-by: Katrin --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index c73799b15b..3bd9b8fe3a 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -347,6 +347,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 auth_provider_domains + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "auth_provider_domains", + "Koha::Schema::Result::AuthProviderDomain", + { "foreign.default_library_id" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 authorised_values_branches Type: has_many @@ -903,8 +918,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-16 13:09:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4nMDSKcOjnGsjUQkkyZtwg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-23 17:26:47 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L55G1NNTzyYIwECcFbokXw __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index ca935d98e2..16fae759dd 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -287,6 +287,21 @@ __PACKAGE__->set_primary_key("categorycode"); =head1 RELATIONS +=head2 auth_provider_domains + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "auth_provider_domains", + "Koha::Schema::Result::AuthProviderDomain", + { "foreign.default_category_id" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 borrower_attribute_types Type: has_many @@ -363,8 +378,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-23 16:29:27 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SKWF2QpqQtXoujwurKFQhA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-16 23:14:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OLnB+kXFSOl8HRWcY3ep3w sub koha_object_class { 'Koha::Patron::Category'; -- 2.30.2