From 7058b89a60dfa57ff3b54ce7c6a761ecea307393 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 Signed-off-by: Lisette Scheer --- 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.25.0