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:
Kaleb Murphy 2009-01-27 04:08:58 +00:00
parent 1c8ee0b954
commit 962a8fdc51
3 changed files with 16 additions and 1 deletions

View file

@ -11,7 +11,8 @@
- removed random questions display from Survey Questions Edit template until
that feature is added.
- fixed #9115: WebGUI::ProfileField->formField doesn't always show the submitted value
- fixed: utf8 issues with Survey should be correct. JSON fields are now
longText instead of longBlob.
7.6.9
- fixed: ukplayer example is now loaded with swfobject.js released under the MIT licence, see gotcha's and /extras/ukplayer
- fixed #9264: new slideShow.swf uploaded in extras/ukplayer (United Knowledge/Arjan Widlak)

View file

@ -7,6 +7,10 @@ upgrading from one version to the next, or even between multiple
versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief.
7.6.10
--------------------------------------------------------------------
* The Survey JSON fields (Survey.surveyJSON and
* Survey_response.responseJSON) will alter to longText from LongBlob's.
7.6.9
--------------------------------------------------------------------
* The ukplayer example, slideshow.html in /extras/ukplayer, used

View file

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