Tomas Cohen Arazi
7a413f8015
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>
20 lines
633 B
Perl
Executable file
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'";
|
|
}
|
|
},
|
|
};
|