From 866fc7653ca09444a65e513e4aeb58cd2b275d7b Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Fri, 22 Jun 2012 11:10:18 +0200 Subject: [PATCH] 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 --- installer/data/mysql/update22to30.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/update22to30.pl b/installer/data/mysql/update22to30.pl index 76bb3c2053..23d7a75708 100755 --- a/installer/data/mysql/update22to30.pl +++ b/installer/data/mysql/update22to30.pl @@ -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"; -- 2.39.5