Bugzilla – Attachment 78745 Details for
Bug 18887
Introduce new table 'circulation_rules', use for 'max_holds' rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18887: Update existing schema files
Bug-18887-Update-existing-schema-files.patch (text/plain), 3.37 KB, created by
Lisette Scheer
on 2018-09-14 21:59:43 UTC
(
hide
)
Description:
Bug 18887: Update existing schema files
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2018-09-14 21:59:43 UTC
Size:
3.37 KB
patch
obsolete
>From 170776062ed52bb85d2b6946d9f585dc42299faa Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 28 Jun 2017 04:08:55 -0400 >Subject: [PATCH] Bug 18887: Update existing schema files > >--- > Koha/Schema/Result/Branch.pm | 15 +++++++++++++++ > Koha/Schema/Result/Category.pm | 15 +++++++++++++++ > Koha/Schema/Result/CirculationRule.pm | 8 ++++---- > Koha/Schema/Result/Itemtype.pm | 15 +++++++++++++++ > 4 files changed, 49 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index b85094b..1295c2d 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -361,6 +361,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 circulation_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CirculationRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "circulation_rules", >+ "Koha::Schema::Result::CirculationRule", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 club_enrollments > > Type: has_many >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 42865a8..48e8359 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -251,6 +251,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 circulation_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CirculationRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "circulation_rules", >+ "Koha::Schema::Result::CirculationRule", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 default_borrower_circ_rule > > Type: might_have >diff --git a/Koha/Schema/Result/CirculationRule.pm b/Koha/Schema/Result/CirculationRule.pm >index 9c950cd..6e7141f 100644 >--- a/Koha/Schema/Result/CirculationRule.pm >+++ b/Koha/Schema/Result/CirculationRule.pm >@@ -135,13 +135,13 @@ __PACKAGE__->belongs_to( > > Type: belongs_to > >-Related object: L<Koha::Schema::Result::Branchcategory> >+Related object: L<Koha::Schema::Result::Category> > > =cut > > __PACKAGE__->belongs_to( > "categorycode", >- "Koha::Schema::Result::Branchcategory", >+ "Koha::Schema::Result::Category", > { categorycode => "categorycode" }, > { > is_deferrable => 1, >@@ -172,8 +172,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-06 17:39:41 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZuAUJSu+FICBAxyxIcJQA >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cp5jbv46L3LtPVxSla8dpA > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm >index 0e36247..95ff7af 100644 >--- a/Koha/Schema/Result/Itemtype.pm >+++ b/Koha/Schema/Result/Itemtype.pm >@@ -165,6 +165,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 circulation_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CirculationRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "circulation_rules", >+ "Koha::Schema::Result::CirculationRule", >+ { "foreign.itemtype" => "self.itemtype" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 default_branch_item_rule > > Type: might_have >-- >2.1.4
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 18887
:
65233
|
65234
|
65235
|
65236
|
65237
|
67620
|
70986
|
70987
|
70988
|
70989
|
70990
|
70991
|
71031
|
71042
|
72218
|
72219
|
72220
|
72221
|
72222
|
72223
|
72224
|
77080
|
77081
|
77082
|
77083
|
77084
|
77085
|
77086
|
77087
|
77207
|
77208
|
77209
|
77210
|
77211
|
77212
|
77213
|
77214
|
77215
|
77218
|
77238
|
77649
|
77650
|
77651
|
77652
|
77653
|
77654
|
77655
|
77656
|
77657
|
77658
|
77659
|
78346
|
78347
|
78348
|
78349
|
78350
|
78351
|
78352
|
78353
|
78354
|
78355
|
78356
|
78674
|
78675
|
78676
|
78677
|
78678
|
78679
|
78680
|
78681
|
78682
|
78683
|
78684
|
78743
|
78744
|
78745
|
78746
|
78747
|
78748
|
78749
|
78750
|
78751
|
78752
|
78753
|
78879
|
79119
|
79626
|
79627
|
79628
|
79629
|
79630
|
79631
|
79632
|
79633
|
79634
|
79635
|
79636
|
79637
|
79638
|
79639
|
79640
|
79641
|
79761
|
79762
|
79763
|
79764
|
79765
|
79766
|
79767
|
79768
|
79769
|
79770
|
79771
|
79772
|
79773
|
79774
|
79775
|
79776
|
79778
|
79891