Forward port Thingy_fields defaultValue size fix.
This commit is contained in:
parent
e636e927e8
commit
dcb22dfd6a
2 changed files with 12 additions and 0 deletions
|
|
@ -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 --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue