Script to convert every WebGUI except assetIndex table from MyISAM to InnoDB.

This commit is contained in:
Colin Kuskie 2011-11-23 17:01:00 -08:00
parent e0ab5eac47
commit 288adcfd17

View file

@ -0,0 +1,15 @@
use WebGUI::Upgrade::Script;
start_step "Convert all tables except assetIndex to InnoDB";
my $get_table = session->db->table_info('', '', '%', 'TABLE');
TABLE: while ( my $table = $get_table->fetchrow_hashref() ) {
next TABLE if $table->{TABLE_NAME} eq 'assetIndex';
session->db->write("ALTER TABLE ". $table->{TABLE_NAME}. " ENGINE=InnoDB");
}
done;