From 912c4571dd2c6108f19e3d532cd7b1a6d6cf72b1 Mon Sep 17 00:00:00 2001 From: Agustin Moyano 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