Bug 28328: Extend biblioitems.lccn to longtext
Same sa issn and isbn, we want lccn to allow longer values. Test plan: Run the updatedatabase script to modify the DB structure restart_all Edit a bibliographic record and enter a long (more than 25 chars) lccn Save Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
c76533c5a1
commit
a537e57909
|
|
@ -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)'
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue