Bug 30047: DBRev 23.12.00.055
[koha.git] / installer / data / mysql / db_revs / 231200055.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "30047",
5     description => "Add thesaurus and heading fields to auth_header table",
6     up          => sub {
7         my ($args) = @_;
8         my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10         if ( !column_exists( 'auth_header', 'heading' ) ) {
11             $dbh->do(
12                 q{
13               ALTER TABLE auth_header ADD COLUMN `heading` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `modification_time`
14           }
15             );
16             say $out "Added column 'auth_header.heading'";
17         }
18
19     },
20 };