Bug 8289 Upgrading from 2.2 does not work anymore

The updatedatabase22to30.pl script update the engine from MyISAM to InnoDB for most tables.

However, the TYPE=InnoDB was deprecated, and is not removed.
The correct syntax is now ENGINE=InnoDB

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
Paul Poulain 2012-06-22 11:10:18 +02:00
parent 19d30206df
commit 866fc7653c

View file

@ -3022,7 +3022,7 @@ my $DBversion = "3.00.00.000";
next if $table->{Name} eq 'auth_subfield_table';
if ($table->{Engine} ne 'InnoDB') {
print "moving $table->{Name} to InnoDB\n";
$dbh->do("ALTER TABLE $table->{Name} TYPE = innodb");
$dbh->do("ALTER TABLE $table->{Name} ENGINE = innodb");
}
unless ($table->{Collation} =~ /^utf8/) {
print "moving $table->{Name} to utf8\n";