From d533b7de8b8b266f884af3ab2d99f322aa3b35b9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 25 Jun 2009 00:07:15 +0000 Subject: [PATCH] Add upgrade script to add new ConvertUTCToTZ macro to config files. --- docs/upgrades/upgrade_7.7.11-7.7.12.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/upgrades/upgrade_7.7.11-7.7.12.pl b/docs/upgrades/upgrade_7.7.11-7.7.12.pl index ee2869141..aa236895b 100644 --- a/docs/upgrades/upgrade_7.7.11-7.7.12.pl +++ b/docs/upgrades/upgrade_7.7.11-7.7.12.pl @@ -32,6 +32,7 @@ my $session = start(); # this line required # upgrade functions go here surveyCleanUp($session); +addUTCMacro($session); finish($session); # this line required @@ -45,6 +46,16 @@ finish($session); # this line required # print "DONE!\n" unless $quiet; #} +#---------------------------------------------------------------------------- +# Describe what our function does +sub addUTCMacro { + my $session = shift; + print "\tAdd ConvertUTCToTZ Macro to config files... " unless $quiet; + # and here's our code + $session->config->addToHash('macros', 'ConvertUTCToTZ', 'ConvertUTCToTZ' ); + print "DONE!\n" unless $quiet; +} + #---------------------------------------------------------------------------- sub surveyCleanUp { my $session = shift;