Bugzilla – Attachment 108214 Details for
Bug 19889
LocalHoldsPriority needs exclusions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19889: set exclude_from_local_holds_priority columns as boolean in schema
Bug-19889-set-excludefromlocalholdspriority-column.patch (text/plain), 4.46 KB, created by
Agustín Moyano
on 2020-08-13 19:41:47 UTC
(
hide
)
Description:
Bug 19889: set exclude_from_local_holds_priority columns as boolean in schema
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2020-08-13 19:41:47 UTC
Size:
4.46 KB
patch
obsolete
>From 13e030c2c11aeb4592f8a6f4041baa91ce4b30ed Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 10 Jun 2020 16:14:41 -0300 >Subject: [PATCH] Bug 19889: set exclude_from_local_holds_priority columns as > boolean in schema > >Sponsored-by: Cooperative Information Network (CIN) > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Schema/Result/Category.pm | 15 +++++++++++++-- > Koha/Schema/Result/Deleteditem.pm | 15 +++++++++++++-- > Koha/Schema/Result/Item.pm | 15 +++++++++++++-- > 3 files changed, 39 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 16d7a2228c..c714a6dce1 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -133,6 +133,11 @@ __PACKAGE__->table("categories"); > data_type: 'tinyint' > is_nullable: 1 > >+=head2 exclude_from_local_holds_priority >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -189,6 +194,8 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", is_nullable => 1 }, > "change_password", > { data_type => "tinyint", is_nullable => 1 }, >+ "exclude_from_local_holds_priority", >+ { data_type => "tinyint", is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -281,8 +288,12 @@ __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-22 17:36:24 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p5Jzm0gHhk42fcLikwUnWw >+ >+__PACKAGE__->add_columns( >+ '+exclude_from_local_holds_priority' => { is_boolean => 1 }, >+); > > sub koha_object_class { > 'Koha::Patron::Category'; >diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm >index c7de98dd4a..4cb78ccd8e 100644 >--- a/Koha/Schema/Result/Deleteditem.pm >+++ b/Koha/Schema/Result/Deleteditem.pm >@@ -282,6 +282,11 @@ __PACKAGE__->table("deleteditems"); > is_nullable: 1 > size: 32 > >+=head2 exclude_from_local_holds_priority >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -392,6 +397,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_nullable => 1, size => 32 }, > "new_status", > { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "exclude_from_local_holds_priority", >+ { data_type => "tinyint", is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -407,8 +414,12 @@ __PACKAGE__->add_columns( > __PACKAGE__->set_primary_key("itemnumber"); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-27 10:38:13 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MsPWE8Trd034UYFcZVbCtw >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-05 20:21:47 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4xydPpkFXE+oOR46jY5L8Q >+ >+__PACKAGE__->add_columns( >+ '+exclude_from_local_holds_priority' => { is_boolean => 1 }, >+); > > sub koha_objects_class { > 'Koha::Old::Items'; >diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm >index cb77d96ee0..7d8b9a6cc6 100644 >--- a/Koha/Schema/Result/Item.pm >+++ b/Koha/Schema/Result/Item.pm >@@ -286,6 +286,11 @@ __PACKAGE__->table("items"); > is_nullable: 1 > size: 32 > >+=head2 exclude_from_local_holds_priority >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -406,6 +411,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_nullable => 1, size => 32 }, > "new_status", > { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "exclude_from_local_holds_priority", >+ { data_type => "tinyint", is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -747,8 +754,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-27 10:38:13 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IpI7wRweeZCbCeU1LhZbRQ >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-05 20:21:47 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9AxhV/hJnavWY4OTDTNRcQ > > __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); > >@@ -759,6 +766,10 @@ __PACKAGE__->belongs_to( > { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, > ); > >+__PACKAGE__->add_columns( >+ '+exclude_from_local_holds_priority' => { is_boolean => 1 }, >+); >+ > use C4::Context; > sub effective_itemtype { > my ( $self ) = @_; >-- >2.25.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 19889
:
105715
|
105716
|
105717
|
105718
|
106435
|
106436
|
106437
|
106438
|
106439
|
106440
|
106441
|
106442
|
107180
|
107187
|
107188
|
107189
|
107190
|
107191
|
107192
|
107193
|
107194
|
107195
|
107196
|
107908
|
107909
|
107910
|
107911
|
107912
|
107913
|
107926
|
107927
|
107928
|
107929
|
107930
|
107931
|
107948
|
108213
| 108214 |
108215
|
108216
|
108217
|
108218
|
108219
|
108220
|
108593
|
108594
|
108595
|
108725
|
108726
|
108728
|
109131
|
109132
|
109285
|
109364
|
109419