Koha/installer/data/mysql/db_revs/230600028.pl
Tomas Cohen Arazi 5dc5770886
Bug 9525: DBRev 23.06.00.028
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-04 16:40:14 -04:00

22 lines
718 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "9525",
description => "Add option to set group as local float group",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'library_groups', 'ft_local_float_group' ) ) {
$dbh->do(
q{
ALTER TABLE library_groups
ADD COLUMN `ft_local_float_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as part of float group'
AFTER ft_local_hold_group
}
);
say $out "Added column 'library_groups.ft_local_float_group'";
}
},
};