Bug 18066: Hea V2
[koha.git] / installer / data / mysql / atomicupdate / bug_18066.perl
1 $DBversion = 'XXX';
2 if( CheckVersion( $DBversion ) ) {
3     unless( column_exists( 'branches', 'geolocation' ) ) {
4         $dbh->do(q|
5             ALTER TABLE branches ADD COLUMN geolocation VARCHAR(255) DEFAULT NULL after opac_info
6         |);
7     }
8
9     $dbh->do(q|
10         INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsGeolocation', '', NULL, 'Geolocation of the main library', 'Free');
11     |);
12     $dbh->do(q|
13         INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsLibrariesInfo', '', NULL, 'Share libraries information', 'YesNo');
14     |);
15     $dbh->do(q|
16         INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsPublicID', '', NULL, 'Public ID for Hea website', 'Free');
17     |);
18
19     SetVersion( $DBversion );
20     print "Upgrade to $DBversion done (Bug 18066 - Hea version 2)\n";
21 }