Bug 15411: Update DB rev (3.20.08.002)

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit af61bfbcf8)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Jesse Weaver 2016-02-12 12:43:32 -07:00 committed by Frédéric Demians
parent ce7091e1bd
commit d877c78fff
2 changed files with 11 additions and 1 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 = "3.20.08.001";
$VERSION = "3.20.08.002";
sub version {
return $VERSION;

View File

@ -10724,6 +10724,16 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.20.08.002";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
UPDATE `authorised_values` SET `lib`='Non-fiction' WHERE `lib`='Non Fiction';
});
print "Upgrade to $DBversion done (Bug 15411 - Change Non Fiction to Non-fiction in authorised_values)\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.