From 950b9b41f508abb1f8d252341f1be0fbce710619 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 28 Jul 2020 09:53:02 -0300 Subject: [PATCH] Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 37b2032919..702482c50c 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -743,6 +743,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 smtp_server + +Type: might_have + +Related object: L + +=cut + +__PACKAGE__->might_have( + "smtp_server", + "Koha::Schema::Result::SmtpServer", + { "foreign.library_id" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 special_holidays Type: has_many @@ -819,8 +834,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-06-12 14:01:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hU6Ldf0uN2iV1h7llLH+4g +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-07 17:39:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l15bfrtGZfKXtqDktyubbA __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 } -- 2.20.1