Koha/installer/data/mysql/db_revs/221200032.pl
Tomas Cohen Arazi 6fafe5e05b
Bug 30928: DBRev 22.12.00.032
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-10 14:19:23 -03:00

18 lines
560 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "30928",
description => "Add interface field to statistics table",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'statistics', 'interface' ) ) {
$dbh->do(q{
ALTER TABLE statistics
ADD COLUMN interface varchar(30) NULL DEFAULT NULL
COMMENT "interface"
AFTER categorycode
});
say $out "Added column 'statistics.interface'";
}
},
}