Bug 6530 follow-up for fix Item_Due / Item_DUE in message_attributes

also dealing with existing setups
This commit is contained in:
Paul Poulain 2011-12-06 20:05:25 +01:00
parent 30b6edc510
commit 4464a280ce
2 changed files with 7 additions and 1 deletions

View File

@ -4571,6 +4571,12 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.06.02.001";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(" UPDATE `message_attributes` SET message_name='Item_Due' WHERE message_name='Item_DUE'");
print "Updating message_name in message_attributes";
SetVersion($DBversion);
}
=head1 FUNCTIONS

View File

@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
use strict;
sub kohaversion {
our $VERSION = '3.06.00.002';
our $VERSION = '3.06.02.001';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install