Bug 9525: DBIC schema
[koha.git] / installer / data / mysql / atomicupdate / bug_9525.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "9525",
5     description => "Add option to set group as local float group",
6     up          => sub {
7         my ($args) = @_;
8         my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10         unless ( column_exists( 'library_groups', 'ft_local_float_group' ) ) {
11             $dbh->do(
12                 q{
13                 ALTER TABLE library_groups
14                     ADD COLUMN `ft_local_float_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as part of float group'
15                     AFTER ft_local_hold_group
16                     }
17             );
18
19             say $out "Added column 'library_groups.ft_local_float_group'";
20         }
21     },
22 };