From 66a87766a2974ad7e403441dbd61c500897b5804 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 1 Nov 2023 17:56:34 -0300 Subject: [PATCH] Bug 18203: DBRev 23.06.00.060 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug_18203.pl => db_revs/230600060.pl} | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) rename installer/data/mysql/{atomicupdate/bug_18203.pl => db_revs/230600060.pl} (54%) diff --git a/Koha.pm b/Koha.pm index f193c03e67..577c71c35e 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "23.06.00.059"; +$VERSION = "23.06.00.060"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_18203.pl b/installer/data/mysql/db_revs/230600060.pl similarity index 54% rename from installer/data/mysql/atomicupdate/bug_18203.pl rename to installer/data/mysql/db_revs/230600060.pl index 17fea2a2df..a4a7774b89 100755 --- a/installer/data/mysql/atomicupdate/bug_18203.pl +++ b/installer/data/mysql/db_revs/230600060.pl @@ -1,17 +1,21 @@ use Modern::Perl; return { - bug_number => "18203", + bug_number => "18203", description => "Add per borrower category restrictions on ILL placement", - up => sub { + up => sub { my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - unless ( column_exists('categories', 'can_place_ill_in_opac') ) { - $dbh->do(q{ + my ( $dbh, $out ) = @$args{qw(dbh out)}; + unless ( column_exists( 'categories', 'can_place_ill_in_opac' ) ) { + $dbh->do( + q{ ALTER TABLE `categories` ADD COLUMN `can_place_ill_in_opac` TINYINT(1) NOT NULL DEFAULT 1 COMMENT 'can this patron category place interlibrary loan requests' AFTER `checkprevcheckout`; - }); + } + ); + + say $out "Added column 'categories.can_place_ill_in_opac'"; } }, }; -- 2.39.5