Bug 18882: (QA follow-up) Ensure stats with no or undef location are set to NULL...
[koha.git] / installer / data / mysql / atomicupdate / bug_18882.perl
1 $DBversion = 'XXX';
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');
5     }
6
7     SetVersion($DBversion);
8     print "Upgrade to $DBversion done (Bug 18882 - Add location code to statistics table for checkouts and renewals)\n";
9 }