convert long varchars in Survey to text
This commit is contained in:
parent
e5ede77c29
commit
b9be6760a1
1 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ my $session = start(); # this line required
|
|||
addAssetDiscoveryServiceAgain( $session );
|
||||
changeMatrixAttributeIndexing( $session );
|
||||
fixCollaborationGroupToEditPost( $session );
|
||||
convertLongVarcharsToText( $session );
|
||||
|
||||
# upgrade functions go here
|
||||
|
||||
|
|
@ -48,6 +49,17 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub convertLongVarcharsToText {
|
||||
my $session = shift;
|
||||
print "\tConverting Survey VARCHAR fields to TEXT... " unless $quiet;
|
||||
$session->db->write("ALTER TABLE Survey MODIFY COLUMN exitURL TEXT");
|
||||
$session->db->write("ALTER TABLE Survey_tempReport MODIFY COLUMN sectionName TEXT");
|
||||
$session->db->write("ALTER TABLE Survey_tempReport MODIFY COLUMN questionName TEXT");
|
||||
# and here's our code
|
||||
print "Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addAssetDiscoveryServiceAgain {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue