Koha-clms/installer/data/mysql
Marcel de Rooy 08ece37cca
Bug 21617: statistics.ccode is not long enough (see also DBRev 18.05.04.001)
Warn from a test:
DBD::mysql::st execute failed: Data too long for column 'ccode' at row 1 [for Statement "INSERT INTO statistics
        (datetime,
         branch,          type,        value,
         other,           itemnumber,  itemtype, location,
         borrowernumber,  proccode,    ccode)
         VALUES (now(),?,?,?,?,?,?,?,?,?,?)" with ParamValues: 0="z8LIyIV", 1='issue', 2=undef, 3='', 4='2584', 5='E_QkzaV5Ay', 6='oDnFRZyog2CS2_XoUB_MB2sBxyI3elbFPC_AekxLPrduGTXKnlNoLKEdQrXzpAw5zD1pGbZshV9ydZup', 7='2000005168', 8='', 9='j9ZDn74omZAoZrTOdC4a05SpWRSHPR2apfss7y5V6QJuQnBEk32XWXCfMp7'] at C4/Stats.pm line 138.

The dbrev 18.05.04.001 did not change it from 10 to 80 as in other tables.

We should either truncate to 10 chars in Stats.pm or increase to varchar(80). Since it is varchar and not char, we should not be afraid about size. I choose for the latter here.

Test plan:
Run db rev.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ad20a30a83)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-11-05 15:50:35 +00:00
..
atomicupdate Bug 21617: statistics.ccode is not long enough (see also DBRev 18.05.04.001) 2018-11-05 15:50:35 +00: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 21082: Database updates 2018-10-26 12:14:32 +01:00
labels_upgrade.pl
…
patroncards_upgrade.pl Bug 21281: Surround creator_templates.rows with backquotes 2018-09-27 13:07:29 +01:00
sysprefs.sql Bug 21082: Database updates 2018-10-26 12:14:32 +01:00
update22to30.pl
…
updatedatabase.pl Bug 21082: DBRev 18.05.05.001 2018-10-26 12:18:45 +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