Bugzilla – Attachment 109202 Details for
Bug 22789
Establish non-priority holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22789: Set non_priority column as boolean in schema
Bug-22789-Set-nonpriority-column-as-boolean-in-sch.patch (text/plain), 3.28 KB, created by
Katrin Fischer
on 2020-08-26 20:38:38 UTC
(
hide
)
Description:
Bug 22789: Set non_priority column as boolean in schema
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-08-26 20:38:38 UTC
Size:
3.28 KB
patch
obsolete
>From 0ecbe8212f595f63b966eb46a780c695892e998d Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 19 Aug 2020 17:57:55 -0300 >Subject: [PATCH] Bug 22789: Set non_priority column as boolean in schema > >Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Schema/Result/OldReserve.pm | 15 ++++++++++++--- > Koha/Schema/Result/Reserve.pm | 15 ++++++++++++--- > 2 files changed, 24 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm >index 5843c090c3..940455298e 100644 >--- a/Koha/Schema/Result/OldReserve.pm >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -150,6 +150,12 @@ __PACKAGE__->table("old_reserves"); > default_value: 0 > is_nullable: 0 > >+=head2 non_priority >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ > =cut > > __PACKAGE__->add_columns( >@@ -209,6 +215,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, > "item_level_hold", > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "non_priority", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -306,13 +314,14 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-25 13:08:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PtDLEieaxS+76FD0H943Zg >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-19 19:20:37 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dov8h1qPOTI4pWBFUuaV2Q > > __PACKAGE__->add_columns( > '+item_level_hold' => { is_boolean => 1 }, > '+lowestPriority' => { is_boolean => 1 }, >- '+suspend' => { is_boolean => 1 } >+ '+suspend' => { is_boolean => 1 }, >+ '+non_priority' => { is_boolean => 1 } > ); > > sub koha_object_class { >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index c56d6e15c2..afe250da6d 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -154,6 +154,12 @@ __PACKAGE__->table("reserves"); > default_value: 0 > is_nullable: 0 > >+=head2 non_priority >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ > =cut > > __PACKAGE__->add_columns( >@@ -223,6 +229,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, > "item_level_hold", > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "non_priority", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -345,8 +353,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-25 13:08:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qdEIwB+DOrraRb+zd4F6yQ >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-19 19:20:37 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o9wUv86AL1c/mje4GCW8Zw > > __PACKAGE__->belongs_to( > "item", >@@ -375,7 +383,8 @@ __PACKAGE__->belongs_to( > __PACKAGE__->add_columns( > '+item_level_hold' => { is_boolean => 1 }, > '+lowestPriority' => { is_boolean => 1 }, >- '+suspend' => { is_boolean => 1 } >+ '+suspend' => { is_boolean => 1 }, >+ '+non_priority' => { is_boolean => 1 } > ); > > sub koha_object_class { >-- >2.11.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 22789
:
108703
|
108704
|
108705
|
108706
|
108707
|
108708
|
108709
|
108710
|
109123
|
109124
|
109125
|
109126
|
109127
|
109128
|
109129
|
109200
|
109201
| 109202 |
109203
|
109204
|
109205