Koha/installer
Joe Atzberger 1de9cb26a2 Script to correct faulty statistics table entries.
This is the first iteration of this script, likely to be expanded
if other mappings are determined.  Currently it populates the
itemtype for all statistics that have itemnumbers and then pulls
borrownumbers from old_issues (or issues).  This has the benign
side effect of ignoring whether or not itemtype was a different
value at the time of the transaction.

It then tries to populate null borrowernumbers using a fairly
conservative approach, only where exactly one match exists, else warns.

The process of updating statistics is needlessly complex based on the
lack of a reliable primary key.  ALL such tables should have a numerical
primary key.  The impression that the timestamp and any other fields
are enough to combine for a "unique enough" key is wrong.  For example,
running SIP tests will add multiple transactions that might share
borrowernumber, itemnumber and timestamp.  Key uniqueness should be
logically inherent, not de facto.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-26 05:51:26 -05:00
..
data Script to correct faulty statistics table entries. 2008-06-26 05:51:26 -05:00
externalmodules.pl fixing permissions on scripts 2007-08-13 12:22:30 -05:00
install.pl refactor web installer code to created C4::Installer 2008-04-21 11:26:23 -05:00
InstallAuth.pm kohabug 2105: prevent crash on IE7 2008-05-13 17:40:36 -05:00