Bug 34029: Extend datatypes of biblioitems.columns to text to avoid breaking import
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 16 Jun 2023 11:14:29 +0000 (11:14 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 14:39:13 +0000 (15:39 +0100)
commitad93540d59660fdb887569d3837d5cf6eed4d089
tree02a44d2379c20af17ee3acb2ed018fbaa8b6f176
parent64c328b9e140fbfcde89c14c07bd96ecda864201
Bug 34029: Extend datatypes of biblioitems.columns to text to avoid breaking import

This updated the datatype of the following columns from varchar(255) to text
to avoid import problems if the mapped MARC field's data exceeds 255
characters.

This is for:
* place (260$a and 264$a)
* publishercode (260$b and 264$b)
* size (300$c)
* illus (300$b)
* pages (300$a)

To test:
* Edit a bibliographic record and enter more than 255 characters into
  the MARC fields listed above. Try to save.
* Run the updatedatabase script to modify the DB structure
* restart_all
* Edit a bibliographic record and enter more than 255 characters into
  the MARC fields listed above.
* Save
* Export the record
* Import the record using staging tools, all should work well

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 00545f8780390d735dad664d76d09cc67f42fdaa)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/atomicupdate/bug_34029_biblioitems.pl [new file with mode: 0755]
installer/data/mysql/kohastructure.sql