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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 26 Jun 2023 14:39:59 +0000 (11:39 -0300)
commit00545f8780390d735dad664d76d09cc67f42fdaa
tree118b83353f8d89c6e659917e4be1826cfeb5dcd2
parent30be338c2421a5b1e791e28732f83eb2542f7eb0
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>
installer/data/mysql/atomicupdate/bug_34029_biblioitems.pl [new file with mode: 0755]
installer/data/mysql/kohastructure.sql