From b89cb988e8b77964c1283d882e7c6aa05c0834e0 Mon Sep 17 00:00:00 2001 From: Patrick Donelan Date: Sun, 23 Aug 2009 08:53:44 +0000 Subject: [PATCH] Fixed: inboxSmsNotificationTemplateId setting missing from upgrade script --- docs/upgrades/upgrade_7.7.18-7.7.19.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/upgrades/upgrade_7.7.18-7.7.19.pl b/docs/upgrades/upgrade_7.7.18-7.7.19.pl index 86f821ad7..ec2731733 100644 --- a/docs/upgrades/upgrade_7.7.18-7.7.19.pl +++ b/docs/upgrades/upgrade_7.7.18-7.7.19.pl @@ -31,7 +31,7 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here - +addInboxSmsNotificationTemplateIdSetting($session); finish($session); # this line required @@ -44,6 +44,14 @@ finish($session); # this line required # print "DONE!\n" unless $quiet; #} +sub addInboxSmsNotificationTemplateIdSetting { + my $session = shift; + print "\tAdding inboxSmsNotificationTemplateId setting... " unless $quiet; + if (!$session->db->quickScalar('select count(*) from settings where name = "inboxSmsNotificationTemplateId"')) { + $session->setting->add('inboxSmsNotificationTemplateId', 'i9-G00ALhJOr0gMh-vHbKA'); + } + print "DONE!\n" unless $quiet; +} # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------