Bug 14707 - DBRev 16.06.00.029
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
66d669d073
commit
7cb3a607d8
2 changed files with 51 additions and 1 deletions
2
Koha.pm
2
Koha.pm
|
@ -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.06.00.028";
|
||||
$VERSION = "16.06.00.029";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -13014,6 +13014,56 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
}
|
||||
}
|
||||
|
||||
$DBversion = "16.06.00.029";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET type="Choice" WHERE variable="UsageStatsLibraryType";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Canada" WHERE variable="UsageStatsCountry" AND value="CANADA";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Czech Republic" WHERE variable="UsageStatsCountry" AND value="CZ";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="United Kingdom" WHERE variable="UsageStatsCountry" AND (value="England" OR value="UK");
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Spain" WHERE variable="UsageStatsCountry" AND value="España";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Greece" WHERE variable="UsageStatsCountry" AND value="GR";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Ireland" WHERE variable="UsageStatsCountry" AND value="Irelanbd";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Mexico" WHERE variable="UsageStatsCountry" AND value="México";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Peru" WHERE variable="UsageStatsCountry" AND value="Perú";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Dominican Rep." WHERE variable="UsageStatsCountry" AND value="República Dominicana";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Trinidad & Tob." WHERE variable="UsageStatsCountry" AND value="Trinidad";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Turkey" WHERE variable="UsageStatsCountry" AND value="Türkiye";
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="USA" WHERE variable="UsageStatsCountry" AND (value="United States" OR value="United States of America" OR value="US");
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET value="Zimbabwe" WHERE variable="UsageStatsCountry" AND value="Zimbabbwe";
|
||||
});
|
||||
|
||||
print "Upgrade to $DBversion done (Bug 14707 - Change UsageStatsCountry from free text to a dropdown list)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
|
||||
# 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.
|
||||
|
|
Loading…
Reference in a new issue