From b961f2d764c12a2fdfbabc688e1f05a3dc197e1d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 18 Mar 2020 12:44:09 +0000 Subject: [PATCH] Bug 24722: (RM follow-up) Schema Changes Signed-off-by: Martin Renvoize --- Koha/Schema/Result/OldReserve.pm | 7 ++++--- Koha/Schema/Result/Reserve.pm | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm index eb9033d06a..85e604d288 100644 --- a/Koha/Schema/Result/OldReserve.pm +++ b/Koha/Schema/Result/OldReserve.pm @@ -78,6 +78,7 @@ __PACKAGE__->table("old_reserves"); =head2 priority data_type: 'smallint' + default_value: 1 is_nullable: 0 =head2 found @@ -165,7 +166,7 @@ __PACKAGE__->add_columns( "reservenotes", { data_type => "longtext", is_nullable => 1 }, "priority", - { data_type => "smallint", is_nullable => 0 }, + { data_type => "smallint", default_value => 1, is_nullable => 0 }, "found", { data_type => "varchar", is_nullable => 1, size => 1 }, "timestamp", @@ -297,8 +298,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 08:36:19 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RDZP4TEaFZUexg9jVg6DbA +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug sub koha_object_class { 'Koha::Old::Hold'; diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index 113b9e46de..c5460e34da 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -82,6 +82,7 @@ __PACKAGE__->table("reserves"); =head2 priority data_type: 'smallint' + default_value: 1 is_nullable: 0 =head2 found @@ -179,7 +180,7 @@ __PACKAGE__->add_columns( "reservenotes", { data_type => "longtext", is_nullable => 1 }, "priority", - { data_type => "smallint", is_nullable => 0 }, + { data_type => "smallint", default_value => 1, is_nullable => 0 }, "found", { data_type => "varchar", is_nullable => 1, size => 1 }, "timestamp", @@ -336,8 +337,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-25 11:25:52 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8f97w2B7OZT7KP+MKelI8g +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VH7h5kYo9WhlGobXb3N3Jg __PACKAGE__->belongs_to( "item", -- 2.39.5