Koha/installer/data/mysql/db_revs/221200027.pl
Tomas Cohen Arazi 0587d32386
Bug 33262: DBRev 22.12.00.027
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-05 10:18:35 -03:00

20 lines
679 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33262",
description => "Store biblionumber of deleted record in acquisition orders",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if ( !column_exists( 'aqorders', 'deleted_biblionumber' ) ) {
$dbh->do(
q{
ALTER TABLE `aqorders`
ADD COLUMN `deleted_biblionumber` int(11) NULL DEFAULT NULL COMMENT 'links the order to the deleted bibliographic record (deletedbiblio.biblionumber)' AFTER biblionumber
}
);
}
say $out "Added column 'aqorders.deleted_biblionumber'";
},
};