From 577f1aad32cb7ec4d19cd0518493e331f279a8fc Mon Sep 17 00:00:00 2001 From: Kaleb Murphy Date: Fri, 3 Apr 2009 17:20:38 +0000 Subject: [PATCH] Adding Survey columns --- docs/upgrades/upgrade_7.7.2-7.7.3.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/upgrades/upgrade_7.7.2-7.7.3.pl b/docs/upgrades/upgrade_7.7.2-7.7.3.pl index 67e834c56..8b0e56daf 100644 --- a/docs/upgrades/upgrade_7.7.2-7.7.3.pl +++ b/docs/upgrades/upgrade_7.7.2-7.7.3.pl @@ -32,6 +32,8 @@ my $session = start(); # this line required # upgrade functions go here +addSurveyQuizModeColumns($session); + finish($session); # this line required @@ -44,6 +46,13 @@ finish($session); # this line required # print "DONE!\n" unless $quiet; #} +sub addSurveyQuizModeColumns{ + my $session = shift; + print "\tAdding columns to Survey table... " unless $quiet; + $session->db->write("alter table Survey add column `quizModeSummary` TINYINT(3)"); + $session->db->write("alter table Survey add column `surveySummaryTemplateId` char(22)"); + print "Done.\n" unless $quiet; +} # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------