Koha-clms/installer/data/mysql
Jonathan Druart 878f645c5d Bug 20922: Remove use of Koha::Number::Price in updatedatabase.pl
Koha::Number::Format->round use Number::Format->round with a precision=2
We should use it directly instead of Koha::* modules. It will avoid the
DB entry to fail because schema changes.

From the koha-devel list:

http://lists.koha-community.org/pipermail/koha-devel/2018-June/044608.html

16.06.00.042

Upgrade to 16.06.00.041 done (Bug 14629 - Add aggressive ISSN matching
feature equivalent to the aggressive ISBN matcher)
DBD::mysql::st execute failed: Unknown column 'me.p_sep_by_space' in
'field list' [for Statement "SELECT `me`.`currency`, `me`.`symbol`,
`me`.`isocode`, `me`.`timestamp`, `me`.`rate`, `me`.`active`,
`me`.`archived`, `me`.`p_sep_by_space` FROM `currency` `me` WHERE (
`active` = ? )" with ParamValues: 0=1] at
/usr/local/share/perl/5.24.1/DBIx/Class/Storage/DBI.pm line 1836.
DBIx::Class::Storage::DBI::_dbh_execute(): Unknown column
'me.p_sep_by_space' in 'field list' at
/inlibro/git/koha-csf-prod-inlibro/Koha/Objects.pm line 209

Basically, the update code uses Koha::Number::Price, which in full
modern object mode goes for its newly added *p_sep_by_space* _in the
18.05 code_.  But the DB doesn't have it yet (it comes with 17.12.00.022).

Signed-off-by: Blou <philippe.blouin@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 93de588509)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2018-06-18 07:26:34 +02:00
..
atomicupdate Bug 17682: DBRev 17.11.01.002 2018-01-23 02:25:13 +00:00
de-DE Bug 17682: Replace 2 occurrences in de-DE and nb-NO 2018-01-23 02:20:46 +00:00
en Bug 18915: Fix checkout note email message 2018-01-23 01:25:05 +00:00
es-ES Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-23 01:44:13 +00:00
fr-CA Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-23 01:44:13 +00:00
fr-FR Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-23 01:44:13 +00:00
it-IT Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-23 01:44:13 +00:00
mandatory Bug 17518: Displayed language name for Czech is wrong 2016-11-02 11:00:35 +00:00
nb-NO Bug 17682: Replace 2 occurrences in de-DE and nb-NO 2018-01-23 02:20:46 +00:00
pl-PL Bug 3841: (follow-up) Add the ACQ framework for pl-PL 2018-05-14 19:24:32 +00:00
ru-RU Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-23 01:44:13 +00:00
uk-UA Bug 19973: Fix SQL syntax error in uk-UA/mandatory/sample_notices.sql 2018-01-23 01:44:54 +00:00
account_offset_types.sql Bug 12768: (QA follow-up) Use specific account offset types for Processing Fee and Lost Item 2017-10-23 12:36:12 -03: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 19724: Add timestamp to biblio_metadata and deletedbiblio_metadata 2017-12-14 12:01:38 +00: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 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 17682: Change URL for Google Scholar in OPACSearchForTitleIn 2018-01-23 02:20:16 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 20922: Remove use of Koha::Number::Price in updatedatabase.pl 2018-06-18 07:26:34 +02:00
userflags.sql Bug 7317: Add SQL templates & sysprefs. 2017-11-09 11:26:56 -03:00
userpermissions.sql Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00