Bugzilla – Attachment 118984 Details for
Bug 26129
Add a new 'configurations' table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26129: DBIx::Class schema updates [DO NOT PUSH]
Bug-26129-DBIxClass-schema-updates-DO-NOT-PUSH.patch (text/plain), 2.30 KB, created by
David Nind
on 2021-03-29 19:22:06 UTC
(
hide
)
Description:
Bug 26129: DBIx::Class schema updates [DO NOT PUSH]
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-03-29 19:22:06 UTC
Size:
2.30 KB
patch
obsolete
>From fa2ed70035830d46c291a38745c1afd863efe743 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 3 Aug 2020 14:29:45 -0300 >Subject: [PATCH] Bug 26129: DBIx::Class schema updates [DO NOT PUSH] > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Schema/Result/Branch.pm | 15 +++++++++++++++ > Koha/Schema/Result/Category.pm | 15 +++++++++++++++ > Koha/Schema/Result/Itemtype.pm | 15 +++++++++++++++ > 3 files changed, 45 insertions(+) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index 87f4ec190f..3e206c890f 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -526,6 +526,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 configurations >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Configuration> >+ >+=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 >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 9cd2dc71ae..ba157c1d9c 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -328,6 +328,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 configurations >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Configuration> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "configurations", >+ "Koha::Schema::Result::Configuration", >+ { "foreign.category_id" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 pseudonymized_transactions > > Type: has_many >diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm >index 266f19ee0f..af29b76368 100644 >--- a/Koha/Schema/Result/Itemtype.pm >+++ b/Koha/Schema/Result/Itemtype.pm >@@ -257,6 +257,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 configurations >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Configuration> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "configurations", >+ "Koha::Schema::Result::Configuration", >+ { "foreign.item_type" => "self.itemtype" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 itemtypes_branches > > Type: has_many >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26129
:
107718
|
107719
|
107720
|
118970
|
118971
|
118972
|
118982
|
118983
|
118984
|
128892
|
128893
|
128894
|
128904
|
128905
|
128906
|
130189
|
130190
|
130191