Koha/installer/data/mysql/db_revs/231200022.pl
Katrin Fischer e9da79efe1
Bug 35724: DBRev 23.12.00.022
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-19 18:31:37 +02:00

30 lines
956 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35724",
description => "Add new fields to EDI accounts for librarians to configure non-standard EDI SFTP port numbers",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
if ( !column_exists( 'vendor_edi_accounts', 'download_port' ) ) {
$dbh->do(
q{
ALTER TABLE vendor_edi_accounts ADD COLUMN `download_port` int(11) DEFAULT NULL AFTER `password`
}
);
say $out "Added column 'vendor_edi_accounts.download_port'";
}
if ( !column_exists( 'vendor_edi_accounts', 'upload_port' ) ) {
$dbh->do(
q{
ALTER TABLE vendor_edi_accounts ADD COLUMN `upload_port` int(11) DEFAULT NULL AFTER `download_port`
}
);
say $out "Added column 'vendor_edi_accounts.upload_port'";
}
},
};