Bugzilla – Attachment 107720 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.50 KB, created by
Tomás Cohen Arazi
on 2020-08-03 17:51:01 UTC
(
hide
)
Description:
Bug 26129: DBIx::Class schema updates [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2020-08-03 17:51:01 UTC
Size:
3.50 KB
patch
obsolete
>From 6cd947d3509544b075b69b7884ab20ae78caec5a 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] > >--- > 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 37b2032919..ec46e79493 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -473,6 +473,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 >@@ -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-07-31 17:41:26 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m4Bb4QTD6jSk1cSPb1NTtA > > __PACKAGE__->add_columns( > '+pickup_location' => { is_boolean => 1 } >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 16d7a2228c..963c25130b 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -265,6 +265,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 >@@ -281,8 +296,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-11 15:54:08 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mWu3jtWB0NXhGMjoapGfSg >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-31 17:41:26 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WCuodn22ccfTYHLT9hhKmA > > sub koha_object_class { > 'Koha::Patron::Category'; >diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm >index b180a90c49..429c38cb67 100644 >--- a/Koha/Schema/Result/Itemtype.pm >+++ b/Koha/Schema/Result/Itemtype.pm >@@ -197,6 +197,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 >@@ -243,8 +258,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-09 17:13:18 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7ojvTzsDvdHPAJMwJrAZ7A >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-31 17:41:27 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EhYGgM/69LLmApcmDcDJdw > > __PACKAGE__->add_columns( > '+rentalcharge_hourly_calendar' => { is_boolean => 1 }, >-- >2.28.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