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

(-)a/installer/data/mysql/atomicupdate/bug_28869.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => 28869,
5
    description => "Add authorised_value_categories.is_integer_only",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        if ( !column_exists( 'authorised_value_categories', 'is_integer_only' ) ) {
10
            $dbh->do(
11
                q{
12
ALTER TABLE authorised_value_categories ADD COLUMN is_integer_only tinyint(1) DEFAULT 0 NOT NULL
13
            }
14
            );
15
        }
16
    },
17
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 1009-1014 DROP TABLE IF EXISTS `authorised_value_categories`; Link Here
1009
CREATE TABLE `authorised_value_categories` (
1009
CREATE TABLE `authorised_value_categories` (
1010
  `category_name` varchar(32) NOT NULL DEFAULT '',
1010
  `category_name` varchar(32) NOT NULL DEFAULT '',
1011
  `is_system` tinyint(1) DEFAULT 0,
1011
  `is_system` tinyint(1) DEFAULT 0,
1012
  `is_integer_only` tinyint(1) NOT NULL DEFAULT 0,
1012
  PRIMARY KEY (`category_name`)
1013
  PRIMARY KEY (`category_name`)
1013
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1014
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1014
/*!40101 SET character_set_client = @saved_cs_client */;
1015
/*!40101 SET character_set_client = @saved_cs_client */;
1015
- 

Return to bug 28869