From dcb22dfd6a1f671428df8728a3f326513844325e Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 9 Dec 2008 01:35:18 +0000 Subject: [PATCH] Forward port Thingy_fields defaultValue size fix. --- docs/changelog/7.x.x.txt | 1 + docs/upgrades/upgrade_7.6.5-7.6.6.pl | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 0caf25015..73c69e850 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed #9219: Thingy After Save Search This Thing not showing all rows (SDH Consulting Group) - fixed #9231: Singleton workflows should not report an error when an attempt is made to run them again - fixed #9244: i18n for colin + - fixed #9252: Thingy defaultValue length causes input to be truncated (SDH Consulting Group) 7.6.5 - security: A problem was discovered and fixed in which users could email executable attachments to a collaboration system and then when viewed online, could execute them. diff --git a/docs/upgrades/upgrade_7.6.5-7.6.6.pl b/docs/upgrades/upgrade_7.6.5-7.6.6.pl index 166b17e6d..1ca1b4684 100644 --- a/docs/upgrades/upgrade_7.6.5-7.6.6.pl +++ b/docs/upgrades/upgrade_7.6.5-7.6.6.pl @@ -29,6 +29,7 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here +lengthenThingyDefaultValues($session); finish($session); # this line required @@ -43,6 +44,16 @@ finish($session); # this line required #} +#---------------------------------------------------------------------------- +# Describe what our function does +sub lengthenThingyDefaultValues { + my $session = shift; + print "\tMake sure that Thingy fields can have a default value size appropriate to their field type... " unless $quiet; + # and here's our code + $session->db->write('alter table Thingy_fields modify defaultValue longtext'); + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- #----------------------------------------------------------------------------