From 4464a280ce5abdafae2cdeda74ea3633bee3a16d Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 6 Dec 2011 20:05:25 +0100 Subject: [PATCH] Bug 6530 follow-up for fix Item_Due / Item_DUE in message_attributes also dealing with existing setups --- installer/data/mysql/updatedatabase.pl | 6 ++++++ kohaversion.pl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9ae0060f7a..b5f96ef8fd 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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 diff --git a/kohaversion.pl b/kohaversion.pl index 7f2be15a87..29b43dfc3f 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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 -- 2.39.5