Adding Survey columns
This commit is contained in:
parent
cd8402919d
commit
577f1aad32
1 changed files with 9 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
|
|
||||||
|
addSurveyQuizModeColumns($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -44,6 +46,13 @@ finish($session); # this line required
|
||||||
# print "DONE!\n" unless $quiet;
|
# 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 --------------------------------
|
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue