Koha/installer/data/mysql/db_revs/220600005.pl
Tomas Cohen Arazi 0810d7d343
Bug 24239: DBRev 22.06.00.005
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-23 15:55:54 -03:00

18 lines
555 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "24239",
description => "Add due_date to illrequests",
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`
});
}
},
};