From 962a8fdc517e8fbce5eb0c2990bda59ab9f919fb Mon Sep 17 00:00:00 2001 From: Kaleb Murphy Date: Tue, 27 Jan 2009 04:08:58 +0000 Subject: [PATCH] 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. --- docs/changelog/7.x.x.txt | 3 ++- docs/gotcha.txt | 4 ++++ docs/upgrades/upgrade_7.6.9-7.6.10.pl | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 68c2a6aa3..e0ef70216 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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) diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 0d743c334..6de541974 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -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 diff --git a/docs/upgrades/upgrade_7.6.9-7.6.10.pl b/docs/upgrades/upgrade_7.6.9-7.6.10.pl index 2a2353fbb..c5c86160f 100644 --- a/docs/upgrades/upgrade_7.6.9-7.6.10.pl +++ b/docs/upgrades/upgrade_7.6.9-7.6.10.pl @@ -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