Koha-clms/installer/data/mysql
Fridolin Somers 892492cbda
Bug 5458: increase ccode column to varchar 80
Koha allows you to define an authorised value having length 80, but then you
can't use it.

Here is why:
The SQL field items.ccode is a varchar(10).
The SQL field authorised_values.authorised_value is a varchar(80).
Therefore the authorised value is truncated to length 10 in items.ccode and the mapping from authorised value to description string fails in Koha.

This patch increases ccode column to varchar 80, like location.

Test plan :
1) Dont apply patches
2) Check there is on item field a subfield with authorised value category CCODE
3) Check this subfield is linked with database column items.ccode
4) Create an authorised values in category CCODE with 'DOCUMENTATION'
5) Edit an item on ccode and choose 'DOCUMENTATION'
6) Save item
7) Look at items.ccode in database or export in MARCXML
8) The value is troncated to 'DOCUMENTAT'
9) Apply patches and update database with installer/data/mysql/atomicupdate/bug_5458.sql
10) Repeate step 5 to 7
11) The value is not truncated 'DOCUMENTATION'

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit c59ef0452c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-09-27 13:29:15 +01:00
..
atomicupdate Bug 5458: increase ccode column to varchar 80 2018-09-27 13:29:15 +01:00
de-DE Bug 20683: Update German web installer for 18.05 2018-08-10 14:40:15 +01:00
en Bug 20710: Update MARC21 frameworks to Update 26 (April 2018) 2018-07-10 08:00:18 +01:00
es-ES Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
fr-CA Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
fr-FR Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
it-IT Bug 20746: Move it-IT files to optional 2018-05-11 10:52:45 -03:00
mandatory Bug 21144: Add ROADTYPE to default authorised values categories 2018-08-24 10:59:47 +01:00
nb-NO Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
pl-PL Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
ru-RU Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
uk-UA Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
account_offset_types.sql Bug 20980: Add 'Manual Credit' and fix existing offsets 2018-08-02 16:29:54 +01:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17135: [QA Follow-up] Changes as to reporting 2016-09-16 10:47:03 +00:00
kohastructure.sql Bug 5458: increase ccode column to varchar 80 2018-09-27 13:29:15 +01:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 21281: Surround creator_templates.rows with backquotes 2018-09-27 13:07:29 +01:00
sysprefs.sql Bug 21226: DB Changes 2018-08-16 15:30:21 +01:00
update22to30.pl
…
updatedatabase.pl Increment version for 18.05.04 release 2018-09-24 14:08:31 +01:00
userflags.sql Bug 15492: New sysprefs and permissions 2018-03-26 17:31:18 -03:00
userpermissions.sql Bug 11317: Add a way to access files from the intranet 2018-05-03 13:26:49 -03:00