These patch removes these two columns from backfill_statstics script
and from columns.def - this file is used to create description in guided
reports
Test plan:
1. Run installer/data/mysql/backfull_statistics.pl
--> without this patch, there are associatedborrower and usercode errors
reported
--> with patch, these two columns are not reported
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(SELECT count(*) FROM statistics WHERE branch="NO_LIBRARY" ) AS NO_LIBRARY,
(SELECT count(*) FROM statistics WHERE branch IS NULL) AS NULL_BRANCH,
(SELECT count(*) FROM statistics WHERE itemtype IS NULL AND itemnumber IS NOT NULL) AS NULL_ITEMTYPE,
- (SELECT count(*) FROM statistics WHERE usercode IS NULL) AS NULL_USERCODE,
(SELECT count(*) FROM statistics WHERE borrowernumber IS NULL) AS NULL_BORROWERNUMBER,
- (SELECT count(*) FROM statistics WHERE associatedborrower IS NULL) AS NULL_ASSOCIATEDBORROWER,
(SELECT count(*) FROM statistics ) AS Total
);
my $sth = $dbh->prepare($query);
<field name="statistics.value">Value</field>
<field name="statistics.type">Type</field>
<field name="statistics.other"></field>
-<field name="statistics.usercode">User code</field>
<field name="statistics.itemnumber">Item number</field>
<field name="statistics.itemtype">Itemtype</field>
<field name="statistics.borrowernumber">Borrower number</field>