Survey.surveyJSON and Survey_response.responseJSON fields will be altered to longText from longBlob. Future JSON fields should probably always be text type db fields.
This commit is contained in:
parent
1c8ee0b954
commit
962a8fdc51
3 changed files with 16 additions and 1 deletions
|
|
@ -32,9 +32,19 @@ my $session = start(); # this line required
|
|||
|
||||
# upgrade functions go here
|
||||
addRichEditorInboxSetting( $session );
|
||||
alterSurveyJSONFields($session);
|
||||
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#Change the Survey and Survey_response tables' json fields to longText instead of longBlob to get back non-binary text
|
||||
#----------------------------------------------------------------------------
|
||||
sub alterSurveyJSONFIelds{
|
||||
my $session = shift;
|
||||
$session->db->write("alter table Survey modify surveyJSON longText");
|
||||
$session->db->write("alter table Survey_response modify responseJSON longText");
|
||||
}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue