]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 30 Nov 2016 12:48:05 +0000 (13:48 +0100)
commit95c65c5a893e0433f13fcb3aeccd0b6ccefd0e70
tree63778d19390aa85afc7e0b4519eb9f9b8fa7b5b2
parent4df3dbbdde4df7e2f69c59e74ca98cff9fd111b2
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: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2cdec7ff9178fd8f70b5885b7c2936ddf09e69f7)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
installer/data/mysql/updatedatabase.pl