Bug 18203: DBRev 23.06.00.060

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-11-01 17:56:34 -03:00
parent 7456c5a483
commit 66a87766a2
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 11 additions and 7 deletions

View file

@ -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;

View file

@ -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'";
}
},
};