Bug 27360: Prevent crash if branchcode does not exist
[koha.git] / installer / data / mysql / atomicupdate / bug_27360.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "27360",
5     description => "Make display of libraries configurable",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9
10         unless ( column_exists('branches', 'public') ) {
11             $dbh->do(q{
12                 ALTER TABLE branches ADD public tinyint DEFAULT 1 AFTER pickup_location
13             });
14         }
15     },
16 }