]> git.koha-community.org Git - koha.git/commit
Bug 14598: (DB update) fix NULL itemtypes in statistics on 'return' rows
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 1 Sep 2015 14:52:17 +0000 (11:52 -0300)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:10 +0000 (14:54 +1300)
commit8cf09aec3da545b6d9427e44a1a410e3aed06a72
treefb3876956248d8fdc3348cbd5406dfa63eab3c90
parent575bbbeaba5a2c808725697b1db263dcef9520da
Bug 14598: (DB update) fix NULL itemtypes in statistics on 'return' rows

This patch introduces an updatedatabase.pl entry that takes care of
updating existing statistics rows.

It does so by looping on the statistics rows, collecting itemnumber occurences
that are have NULL itemtypes.
It then chooses the right itemtype following what is proposed on bug 14651, and
then updates the rows in statistics using the calculated itemtype.

Regards

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
installer/data/mysql/updatedatabase.pl