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

(-)a/installer/data/mysql/atomicupdate/bug_35067_-_add_authorised_value_categories.parent_column.pl (+20 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "35067",
5
    description => "Allow authorised value parent category so categories can be linked and shown together",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        if ( !column_exists( 'authorised_value_categories', 'parent' ) ) {
11
            $dbh->do(
12
                q{
13
              ALTER TABLE authorised_value_categories ADD COLUMN `parent` varchar(32) DEFAULT NULL AFTER `is_system`
14
          }
15
            );
16
17
            say $out "Added column 'authorised_value_categories.parent'";
18
        }
19
    },
20
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 1008-1013 DROP TABLE IF EXISTS `authorised_value_categories`; Link Here
1008
CREATE TABLE `authorised_value_categories` (
1008
CREATE TABLE `authorised_value_categories` (
1009
  `category_name` varchar(32) NOT NULL DEFAULT '',
1009
  `category_name` varchar(32) NOT NULL DEFAULT '',
1010
  `is_system` tinyint(1) DEFAULT 0,
1010
  `is_system` tinyint(1) DEFAULT 0,
1011
  `parent` varchar(32) DEFAULT NULL,
1011
  PRIMARY KEY (`category_name`)
1012
  PRIMARY KEY (`category_name`)
1012
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1013
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1013
/*!40101 SET character_set_client = @saved_cs_client */;
1014
/*!40101 SET character_set_client = @saved_cs_client */;
1014
- 

Return to bug 35067