Koha/installer/data/mysql
Jonathan Druart 2367760e99 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>
2018-06-15 10:12:43 +00:00
..
atomicupdate Bug 3849: DBRev 18.06.00.001 2018-06-04 13:40:24 -04:00
de-DE Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03:00
en Bug 19287: Add CANCEL_HOLD_ON_LOST to installer files for all languages 2018-04-23 12:55:59 -03: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 18786: Add PAYMENT_TYPE to the installer file 2018-05-17 13:16:32 -03: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 18790: Add ability to void payments 2018-04-19 12:32:21 -03:00
audio_alerts.sql
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 Revert "Bug 20073: Move Elasticsearch configs to yaml files and improve the default settings." 2018-05-21 11:02:16 -03:00
labels_upgrade.pl
patroncards_upgrade.pl
sysprefs.sql Bug 19862: Turn off RoutingListAddReserves on new installations 2018-05-17 11:28:07 -03:00
update22to30.pl
updatedatabase.pl Bug 20922: Remove use of Koha::Number::Price in updatedatabase.pl 2018-06-15 10:12:43 +00:00
userflags.sql Bug 2426: Remove deprecated management permission 2018-06-08 12:17:25 +00:00
userpermissions.sql Bug 3849: Improve descriptions of granular acquisition permissions 2018-06-04 13:59:44 +00:00