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 --------------------------------