Koha/installer/data/mysql
Fridolin Somers c59ef0452c 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>
2018-09-26 16:05:19 +00:00
..
atomicupdate Bug 5458: increase ccode column to varchar 80 2018-09-26 16:05:19 +00:00
de-DE Bug 20683: Update German web installer for 18.05 2018-08-10 10:34:42 +00:00
en Bug 19191: Fix capitalization of notice titles 2018-07-23 15:08:59 +00:00
es-ES Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
fr-CA Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
fr-FR Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
it-IT Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
mandatory Bug 21144: Add ROADTYPE to default authorised values categories 2018-08-21 11:45:20 +00:00
nb-NO Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
pl-PL Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
ru-RU Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
uk-UA Bug 19191: Add non-english notices 2018-07-23 15:09:00 +00:00
account_offset_types.sql Bug 20997: (QA follow-up) POD fixes and offset type consistency 2018-08-10 12:30:36 +00:00
audio_alerts.sql
backfill_statistics.pl
fix_unclosed_nonaccruing_fines_bug17135.pl
kohastructure.sql Bug 5458: increase ccode column to varchar 80 2018-09-26 16:05:19 +00:00
labels_upgrade.pl
patroncards_upgrade.pl Bug 21281: Surround creator_templates.rows with backquotes 2018-09-26 15:22:56 +00:00
sysprefs.sql Bug 20819: Db rev for new table patron_consent and sysprefs 2018-09-20 13:45:18 +00:00
update22to30.pl
updatedatabase.pl Bug 20819: DBRev 18.06.00.031 2018-09-20 13:45:27 +00:00
userflags.sql Bug 2426: Remove deprecated management permission 2018-06-08 12:17:25 +00:00
userpermissions.sql Bug 11911: Add a separate permission for managing suggestions 2018-07-23 15:34:20 +00:00