Koha/installer/data/mysql
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
..
en bug 2254 [2/3]: fix authority types in MARC21 frameworks (DB rev 095) 2008-06-25 11:39:28 -05:00
fr-FR bug 2254 [2/3]: fix authority types in MARC21 frameworks (DB rev 095) 2008-06-25 11:39:28 -05:00
backfill_statistics.pl Script to correct faulty statistics table entries. 2008-06-26 05:51:26 -05:00
kohastructure.sql DB Bump 094 - bug 2268 -- allow mixed case subfield labels in MARC21 by changing db column collation. 2008-06-23 08:00:03 -05:00
sample_only_param_tables.sql Moved location of updater scripts to dbms specific dir. 2007-11-13 11:22:47 -06:00
update22to30.pl kohabug 2076: updated 2.2 -> 3.0 upgrade 2008-05-11 05:40:46 -05:00
updatedatabase.pl bug 2176: fix typo in column name (DB rev 096) 2008-06-25 15:33:46 -05:00