@@ -, +, @@ --- .../data/mysql/atomicupdate/bug_28328.pl | 19 +++++++++++++++++++ installer/data/mysql/kohastructure.sql | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100755 installer/data/mysql/atomicupdate/bug_28328.pl --- a/installer/data/mysql/atomicupdate/bug_28328.pl +++ a/installer/data/mysql/atomicupdate/bug_28328.pl @@ -0,0 +1,19 @@ +use Modern::Perl; + +return { + bug_number => "28328", + description => "Extend biblioitems.lccn", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + # Do you stuffs here + $dbh->do(q{ + ALTER TABLE `biblioitems` + MODIFY COLUMN `lccn` longtext DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)' + }); + $dbh->do(q{ + ALTER TABLE `deletedbiblioitems` + MODIFY COLUMN `lccn` longtext DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)' + }); + }, +}; --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -1132,7 +1132,7 @@ CREATE TABLE `biblioitems` ( `notes` longtext DEFAULT NULL, `size` varchar(255) DEFAULT NULL COMMENT 'material size (MARC21 300$c)', `place` varchar(255) DEFAULT NULL COMMENT 'publication place (MARC21 260$a)', - `lccn` varchar(25) DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)', + `lccn` longtext DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)', `url` mediumtext DEFAULT NULL COMMENT 'url (MARC21 856$u)', `cn_source` varchar(10) DEFAULT NULL COMMENT 'classification source (MARC21 942$2)', `cn_class` varchar(30) DEFAULT NULL, @@ -2531,7 +2531,7 @@ CREATE TABLE `deletedbiblioitems` ( `notes` longtext DEFAULT NULL, `size` varchar(255) DEFAULT NULL COMMENT 'material size (MARC21 300$c)', `place` varchar(255) DEFAULT NULL COMMENT 'publication place (MARC21 260$a)', - `lccn` varchar(25) DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)', + `lccn` longtext DEFAULT NULL COMMENT 'library of congress control number (MARC21 010$a)', `url` mediumtext DEFAULT NULL COMMENT 'url (MARC21 856$u)', `cn_source` varchar(10) DEFAULT NULL COMMENT 'classification source (MARC21 942$2)', `cn_class` varchar(30) DEFAULT NULL, --