Script to convert every WebGUI except assetIndex table from MyISAM to InnoDB.
This commit is contained in:
parent
e0ab5eac47
commit
288adcfd17
1 changed files with 15 additions and 0 deletions
15
share/upgrades/7.10.23-8.0.0/zzzz_convertToInnoDb.pl
Normal file
15
share/upgrades/7.10.23-8.0.0/zzzz_convertToInnoDb.pl
Normal 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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue