Koha/installer/data/mysql/db_revs/220600005.pl
Tomas Cohen Arazi 7a413f8015
Bug 32191: Tidy upgrade scripts output
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-14 15:08:10 -03:00

20 lines
633 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "24239",
description => "Let the ILL module set ad hoc hard due dates",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless ( column_exists( 'illrequests', 'due_date' ) ) {
$dbh->do(q{
ALTER TABLE `illrequests`
ADD COLUMN `due_date` datetime DEFAULT NULL COMMENT 'Custom date due specified by backend, leave NULL for default date_due calculation'
AFTER `biblio_id`
});
say $out "Added column 'illrequests.due_date'";
}
},
};