DBREV for Bug 18066 - Hea - Version 2

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Brendan A Gallagher 2017-03-23 00:18:10 +00:00
parent c3db243ad4
commit eee0020f4a
3 changed files with 23 additions and 22 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "16.12.00.014";
$VERSION = "16.12.00.015";
sub version {
return $VERSION;

View File

@ -1,21 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
unless( column_exists( 'branches', 'geolocation' ) ) {
$dbh->do(q|
ALTER TABLE branches ADD COLUMN geolocation VARCHAR(255) DEFAULT NULL after opac_info
|);
}
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsGeolocation', '', NULL, 'Geolocation of the main library', 'Free');
|);
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsLibrariesInfo', '', NULL, 'Share libraries information', 'YesNo');
|);
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsPublicID', '', NULL, 'Public ID for Hea website', 'Free');
|);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18066 - Hea version 2)\n";
}

View File

@ -13969,6 +13969,28 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 8010 - Search history can be added to the wrong patron)\n";
}
$DBversion = "16.12.00.015";
if( CheckVersion( $DBversion ) ) {
unless( column_exists( 'branches', 'geolocation' ) ) {
$dbh->do(q|
ALTER TABLE branches ADD COLUMN geolocation VARCHAR(255) DEFAULT NULL after opac_info
|);
}
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsGeolocation', '', NULL, 'Geolocation of the main library', 'Free');
|);
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsLibrariesInfo', '', NULL, 'Share libraries information', 'YesNo');
|);
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES ('UsageStatsPublicID', '', NULL, 'Public ID for Hea website', 'Free');
|)
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18066 - Hea version 2)\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.