[Rt-commit] r19347 - in rt/3.8/trunk: .

falcone at bestpractical.com falcone at bestpractical.com
Fri Apr 24 16:18:09 EDT 2009


Author: falcone
Date: Fri Apr 24 16:18:08 2009
New Revision: 19347

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/etc/upgrade/upgrade-mysql-schema.pl

Log:
 r47021 at ketch:  falcone | 2009-04-24 16:17:16 -0400
 * we can get away with combining the DEFAULT CHARSET alter table statement with the
   column changes and save one more copy of data.


Modified: rt/3.8/trunk/etc/upgrade/upgrade-mysql-schema.pl
==============================================================================
--- rt/3.8/trunk/etc/upgrade/upgrade-mysql-schema.pl	(original)
+++ rt/3.8/trunk/etc/upgrade/upgrade-mysql-schema.pl	Fri Apr 24 16:18:08 2009
@@ -228,8 +228,7 @@
 my %alter_aggregator;
 sub convert_table {
     my $table = shift;
-    push @sql_commands, qq{ALTER TABLE $table DEFAULT CHARACTER SET utf8};
-    @alter_aggregator{'char_to_binary','binary_to_char'} = ([],[]);
+    @alter_aggregator{'char_to_binary','binary_to_char'} = (['DEFAULT CHARACTER SET utf8'],[]);
 
     my $sth = $dbh->column_info( undef, $db_name, $table, undef );
     $sth->execute;


More information about the Rt-commit mailing list