2 if ( CheckVersion($DBversion) ) {
3 if ( !column_exists( 'statistics', 'location' ) ) {
4 $dbh->do('ALTER TABLE statistics ADD COLUMN location VARCHAR(80) default NULL AFTER itemtype');
7 SetVersion($DBversion);
8 print "Upgrade to $DBversion done (Bug 18882 - Add location code to statistics table for checkouts and renewals)\n";