Bugzilla – Attachment 108705 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.17 KB, created by
Agustín Moyano
on 2020-08-19 21:24:48 UTC
(
hide
)
Description:
Bug 22789: Set non_priority column as boolean in schema
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2020-08-19 21:24:48 UTC
Size:
3.17 KB
patch
obsolete
>From 912c4571dd2c6108f19e3d532cd7b1a6d6cf72b1 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 > >--- > 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 3df98cc4e5..9dbba991fe 100644 >--- a/Koha/Schema/Result/OldReserve.pm >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -144,6 +144,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( >@@ -201,6 +207,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 >@@ -298,13 +306,14 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug >+# 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 c5460e34da..8f3430bfa5 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -148,6 +148,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( >@@ -215,6 +221,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 >@@ -337,8 +345,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VH7h5kYo9WhlGobXb3N3Jg >+# 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", >@@ -367,7 +375,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.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 22789
:
108703
|
108704
|
108705
|
108706
|
108707
|
108708
|
108709
|
108710
|
109123
|
109124
|
109125
|
109126
|
109127
|
109128
|
109129
|
109200
|
109201
|
109202
|
109203
|
109204
|
109205