View | Details | Raw Unified | Return to bug 30047
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_30047.pl (+20 lines)
Line 0 Link Here
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
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 920-925 CREATE TABLE `auth_header` ( Link Here
920
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
920
  `authtypecode` varchar(10) NOT NULL DEFAULT '',
921
  `datecreated` date DEFAULT NULL,
921
  `datecreated` date DEFAULT NULL,
922
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
922
  `modification_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
923
  `heading` longtext DEFAULT NULL,
923
  `origincode` varchar(20) DEFAULT NULL,
924
  `origincode` varchar(20) DEFAULT NULL,
924
  `authtrees` longtext DEFAULT NULL,
925
  `authtrees` longtext DEFAULT NULL,
925
  `marc` blob DEFAULT NULL,
926
  `marc` blob DEFAULT NULL,
926
- 

Return to bug 30047