Bugzilla – Attachment 65235 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), 4.76 KB, created by
Kyle M Hall
on 2017-07-25 15:07:53 UTC
(
hide
)
Description:
Bug 18887 - Update existing schema files
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2017-07-25 15:07:53 UTC
Size:
4.76 KB
patch
obsolete
>From 5a2e327e13bd89f1110cc519278ac91805e9ed68 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 | 19 +++++++++++++++++-- > Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- > Koha/Schema/Result/CirculationRule.pm | 8 ++++---- > Koha/Schema/Result/Itemtype.pm | 19 +++++++++++++++++-- > 4 files changed, 55 insertions(+), 10 deletions(-) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index b4960ef..7bd8ee6 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -360,6 +360,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 >@@ -596,8 +611,8 @@ Composing rels: L</branchrelations> -> categorycode > __PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode"); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:17:25 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:99U1YQ4iSum4LbBha4hDTQ >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gRtifDOxndV9CLNpFr0XpQ > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index fc26a7d..6a973df 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 >@@ -267,8 +282,8 @@ __PACKAGE__->might_have( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-07-08 13:37:33 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LH3DdDDYXaGsNsILAUZzng >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bb9BvkU4r6/J8rD9z2sDrA > > > # You can replace this text with custom content, and it will be preserved on regeneration >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 959f8a3..df616e4 100644 >--- a/Koha/Schema/Result/Itemtype.pm >+++ b/Koha/Schema/Result/Itemtype.pm >@@ -149,6 +149,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 >@@ -195,8 +210,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1GiikODklVISOurHX37qjA >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7o86hHDFdmHShwhJ/iIzew > > # Use the ItemtypeLocalization view to create the join on localization > our $LANGUAGE; >-- >2.10.2
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