Koha/installer/data/mysql/db_revs/211200010.pl
Fridolin Somers 3d9dfe8e8c Bug 21729: DBRev 21.12.00.010
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-28 11:09:06 -10:00

25 lines
1,021 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "21729",
description => "Add new column reserves.patron_expiration_date",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless( column_exists('reserves', 'patron_expiration_date') ) {
$dbh->do(q{
ALTER TABLE reserves
ADD COlUMN patron_expiration_date date DEFAULT NULL COMMENT 'the date the hold expires - usually the date entered by the patron to say they don''t need the hold after a certain date'
AFTER expirationdate
});
}
unless( column_exists('old_reserves', 'patron_expiration_date') ) {
$dbh->do(q{
ALTER TABLE old_reserves
ADD COlUMN patron_expiration_date date DEFAULT NULL COMMENT 'the date the hold expires - usually the date entered by the patron to say they don''t need the hold after a certain date'
AFTER expirationdate
});
}
},
};