Bug 6530 follow-up for fix Item_Due / Item_DUE in message_attributes
authorPaul Poulain <paul.poulain@biblibre.com>
Tue, 6 Dec 2011 19:05:25 +0000 (20:05 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 6 Dec 2011 19:05:25 +0000 (20:05 +0100)
also dealing with existing setups

installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 9ae0060..b5f96ef 100755 (executable)
@@ -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
 
index 7f2be15..29b43df 100644 (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