Bugzilla – Attachment 128906 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), 3.43 KB, created by
Tomás Cohen Arazi
on 2021-12-23 18:13:48 UTC
(
hide
)
Description:
Bug 26129: DBIx::Class schema updates [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2021-12-23 18:13:48 UTC
Size:
3.43 KB
patch
obsolete
>From c44868ed95d640017c2475b3f816f4e5c989a574 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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<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 >@@ -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<Koha::Schema::Result::Configuration> >+ >+=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<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 > > 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
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