Skip to content

Commit 288adcf

Browse files
committedNov 24, 2011
Script to convert every WebGUI except assetIndex table from MyISAM to InnoDB.
1 parent e0ab5ea commit 288adcf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
use WebGUI::Upgrade::Script;
3+
4+
start_step "Convert all tables except assetIndex to InnoDB";
5+
6+
my $get_table = session->db->table_info('', '', '%', 'TABLE');
7+
8+
TABLE: while ( my $table = $get_table->fetchrow_hashref() ) {
9+
next TABLE if $table->{TABLE_NAME} eq 'assetIndex';
10+
session->db->write("ALTER TABLE ". $table->{TABLE_NAME}. " ENGINE=InnoDB");
11+
}
12+
13+
14+
done;
15+

0 commit comments

Comments
 (0)
Please sign in to comment.