Increase the size of MapPoint fields so data is not truncated. Fixes bug #11394

This commit is contained in:
Colin Kuskie 2010-02-10 09:04:57 -08:00
parent 8563340eff
commit d41b5897bb
2 changed files with 15 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- fixed #11393: Map template variables missing
- fixed #11336: Duplicate Version Tag Created.
- fixed #11398: Recent post information keeps disappearing from my forums
- fixed #11394: Map points does not show all the data that was entered
7.8.11
- fixed #11362: Unable to checkout with ITransact plugin

View file

@ -32,6 +32,7 @@ my $session = start(); # this line required
# upgrade functions go here
fixWorkflowSizeLimits($session);
growMapPointDataColumns($session);
finish($session); # this line required
@ -60,6 +61,19 @@ sub fixWorkflowSizeLimits {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub growMapPointDataColumns {
my $session = shift;
print "\tIncrease the size of Map Point data columns... " unless $quiet;
foreach my $column (qw{address1 address2 city state zipCode country email}) {
$session->db->write(qq|ALTER TABLE MapPoint MODIFY $column CHAR(35)|);
}
$session->db->write(qq|ALTER TABLE MapPoint MODIFY website CHAR(255)|);
# and here's our code
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
#----------------------------------------------------------------------------