Skip to content
Permalink
Browse files

Script to convert every WebGUI except assetIndex table from MyISAM to…

… InnoDB.
  • Loading branch information...
perlDreamer committed Nov 24, 2011
1 parent e0ab5ea commit 288adcfd176808b71e9268124146dfb3b5963fbe
Showing with 15 additions and 0 deletions.
  1. +15 −0 share/upgrades/7.10.23-8.0.0/zzzz_convertToInnoDb.pl
@@ -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;

0 comments on commit 288adcf

Please sign in to comment.
You can’t perform that action at this time.