Bug 15411: Update DB rev (3.22.03.001)

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Jesse Weaver 2016-02-12 12:43:32 -07:00 committed by Julian Maurice
parent 3b1e74d7ae
commit af61bfbcf8
3 changed files with 11 additions and 2 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.22.03.000";
$VERSION = "3.22.03.001";
sub version {
return $VERSION;

View File

@ -1 +0,0 @@
UPDATE `authorised_values` SET `lib`='Non-fiction' WHERE `lib`='Non Fiction';

View File

@ -11444,6 +11444,16 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.22.03.001";
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.