From 645783c253cc31d308802847a79b8811c4022236 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 Signed-off-by: Chris Cormack (cherry picked from commit 4cb0aa5d30dd044f50b9caacb59cd7bf39226070) --- 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