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

(-)a/installer/data/mysql/atomicupdate/bug_36396.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "36396",
5
    description => "Link elastic facets with authorized value categories",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{
11
            ALTER TABLE search_field
12
            ADD COLUMN `authorised_value_category` varchar(32) DEFAULT NULL
13
            AFTER mandatory
14
        });
15
    },
16
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 5614-5619 CREATE TABLE `search_field` ( Link Here
5614
  `staff_client` tinyint(1) NOT NULL DEFAULT 1,
5614
  `staff_client` tinyint(1) NOT NULL DEFAULT 1,
5615
  `opac` tinyint(1) NOT NULL DEFAULT 1,
5615
  `opac` tinyint(1) NOT NULL DEFAULT 1,
5616
  `mandatory` tinyint(1) DEFAULT NULL COMMENT 'if marked this field is not editable or removable',
5616
  `mandatory` tinyint(1) DEFAULT NULL COMMENT 'if marked this field is not editable or removable',
5617
  `authorised_value_category` varchar(32) DEFAULT NULL COMMENT 'link to authorised value category',
5617
  PRIMARY KEY (`id`),
5618
  PRIMARY KEY (`id`),
5618
  UNIQUE KEY `name` (`name`(191))
5619
  UNIQUE KEY `name` (`name`(191))
5619
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5620
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5620
- 

Return to bug 36396